sst-filters
Filters submodule for the Surge Synthesizer
Loading...
Searching...
No Matches
Catch::Matchers Namespace Reference

Namespaces

namespace  Impl
namespace  Exception
namespace  Floating
namespace  Generic
namespace  StdString
namespace  Vector

Functions

Exception::ExceptionMessageMatcher Message (std::string const &message)
Floating::WithinUlpsMatcher WithinULP (double target, uint64_t maxUlpDiff)
Floating::WithinUlpsMatcher WithinULP (float target, uint64_t maxUlpDiff)
Floating::WithinAbsMatcher WithinAbs (double target, double margin)
Floating::WithinRelMatcher WithinRel (double target, double eps)
Floating::WithinRelMatcher WithinRel (double target)
Floating::WithinRelMatcher WithinRel (float target, float eps)
Floating::WithinRelMatcher WithinRel (float target)
template<typename T>
Generic::PredicateMatcher< T > Predicate (std::function< bool(T const &)> const &predicate, std::string const &description="")
StdString::EqualsMatcher Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
StdString::ContainsMatcher Contains (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
StdString::EndsWithMatcher EndsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
StdString::StartsWithMatcher StartsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
StdString::RegexMatcher Matches (std::string const &regex, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ContainsMatcher< T, AllocComp, AllocMatch > Contains (std::vector< T, AllocComp > const &comparator)
template<typename T, typename Alloc = std::allocator<T>>
Vector::ContainsElementMatcher< T, Alloc > VectorContains (T const &comparator)
template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::EqualsMatcher< T, AllocComp, AllocMatch > Equals (std::vector< T, AllocComp > const &comparator)
template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ApproxMatcher< T, AllocComp, AllocMatch > Approx (std::vector< T, AllocComp > const &comparator)
template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::UnorderedEqualsMatcher< T, AllocComp, AllocMatch > UnorderedEquals (std::vector< T, AllocComp > const &target)

Function Documentation

◆ Message()

Exception::ExceptionMessageMatcher Message ( std::string const & message)

References Message().

Referenced by Message().

◆ WithinULP() [1/2]

Floating::WithinUlpsMatcher WithinULP ( double target,
uint64_t maxUlpDiff )

References WithinULP().

Referenced by WithinULP(), and WithinULP().

◆ WithinULP() [2/2]

Floating::WithinUlpsMatcher WithinULP ( float target,
uint64_t maxUlpDiff )

References WithinULP().

◆ WithinAbs()

Floating::WithinAbsMatcher WithinAbs ( double target,
double margin )

References WithinAbs().

Referenced by WithinAbs().

◆ WithinRel() [1/4]

Floating::WithinRelMatcher WithinRel ( double target,
double eps )

References WithinRel().

Referenced by WithinRel(), WithinRel(), WithinRel(), and WithinRel().

◆ WithinRel() [2/4]

Floating::WithinRelMatcher WithinRel ( double target)

References WithinRel().

◆ WithinRel() [3/4]

Floating::WithinRelMatcher WithinRel ( float target,
float eps )

References WithinRel().

◆ WithinRel() [4/4]

Floating::WithinRelMatcher WithinRel ( float target)

References WithinRel().

◆ Predicate()

template<typename T>
Generic::PredicateMatcher< T > Predicate ( std::function< bool(T const &)> const & predicate,
std::string const & description = "" )

References Predicate().

Referenced by Catch::Generators::filter(), and Predicate().

◆ Equals() [1/2]

StdString::EqualsMatcher Equals ( std::string const & str,
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes )

References Equals(), and CaseSensitive::Yes.

Referenced by Equals(), and Equals().

◆ Contains() [1/2]

StdString::ContainsMatcher Contains ( std::string const & str,
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes )

References Contains(), and CaseSensitive::Yes.

Referenced by Contains(), and Contains().

◆ EndsWith()

StdString::EndsWithMatcher EndsWith ( std::string const & str,
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes )

References EndsWith(), and CaseSensitive::Yes.

Referenced by EndsWith().

◆ StartsWith()

StdString::StartsWithMatcher StartsWith ( std::string const & str,
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes )

References StartsWith(), and CaseSensitive::Yes.

Referenced by StartsWith().

◆ Matches()

StdString::RegexMatcher Matches ( std::string const & regex,
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes )

References Matches(), and CaseSensitive::Yes.

Referenced by Matches().

◆ Contains() [2/2]

template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ContainsMatcher< T, AllocComp, AllocMatch > Contains ( std::vector< T, AllocComp > const & comparator)

References Contains().

◆ VectorContains()

template<typename T, typename Alloc = std::allocator<T>>
Vector::ContainsElementMatcher< T, Alloc > VectorContains ( T const & comparator)

References VectorContains().

Referenced by VectorContains().

◆ Equals() [2/2]

template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::EqualsMatcher< T, AllocComp, AllocMatch > Equals ( std::vector< T, AllocComp > const & comparator)

References Equals().

◆ Approx()

template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ApproxMatcher< T, AllocComp, AllocMatch > Approx ( std::vector< T, AllocComp > const & comparator)

References Approx().

Referenced by Approx().

◆ UnorderedEquals()

template<typename T, typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::UnorderedEqualsMatcher< T, AllocComp, AllocMatch > UnorderedEquals ( std::vector< T, AllocComp > const & target)

References UnorderedEquals().

Referenced by UnorderedEquals().