API
Catch::Matchers Namespace Reference

Namespaces

 Exception
 
 Floating
 
 Generic
 
 Impl
 
 StdString
 
 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

◆ Approx()

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

Definition at line 3754 of file catch.hpp.

◆ Contains() [1/2]

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

◆ Contains() [2/2]

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

Definition at line 3739 of file catch.hpp.

◆ EndsWith()

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

Definition at line 3749 of file catch.hpp.

◆ Matches()

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

◆ Message()

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

◆ Predicate()

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

Definition at line 3521 of file catch.hpp.

◆ StartsWith()

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

◆ UnorderedEquals()

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

Definition at line 3759 of file catch.hpp.

◆ VectorContains()

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

Definition at line 3744 of file catch.hpp.

◆ WithinAbs()

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

Referenced by TCSITEST::SCENARIO().

◆ WithinRel() [1/4]

Floating::WithinRelMatcher Catch::Matchers::WithinRel ( double  target)

◆ WithinRel() [2/4]

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

◆ WithinRel() [3/4]

Floating::WithinRelMatcher Catch::Matchers::WithinRel ( float  target)

◆ WithinRel() [4/4]

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

◆ WithinULP() [1/2]

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

◆ WithinULP() [2/2]

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