Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Matchers Namespace Reference

Namespaces

namespace  Floating
 
namespace  Generic
 
namespace  Impl
 
namespace  StdString
 
namespace  Vector
 

Functions

Floating::WithinUlpsMatcher WithinULP (double target, int maxUlpDiff)
 
Floating::WithinUlpsMatcher WithinULP (float target, int maxUlpDiff)
 
Floating::WithinAbsMatcher WithinAbs (double target, double margin)
 
template<typename T >
Generic::PredicateMatcher< TPredicate (std::function< bool(T const &)> const &predicate, std::string const &description="")
 
StdString::EqualsMatcher Equals (std::string const &str, CaseSensitive::Choice caseSensitivity)
 
StdString::ContainsMatcher Contains (std::string const &str, CaseSensitive::Choice caseSensitivity)
 
StdString::EndsWithMatcher EndsWith (std::string const &str, CaseSensitive::Choice caseSensitivity)
 
StdString::StartsWithMatcher StartsWith (std::string const &str, CaseSensitive::Choice caseSensitivity)
 
StdString::RegexMatcher Matches (std::string const &regex, CaseSensitive::Choice caseSensitivity)
 
template<typename T >
Vector::ContainsMatcher< TContains (std::vector< T > const &comparator)
 
template<typename T >
Vector::ContainsElementMatcher< TVectorContains (T const &comparator)
 
template<typename T >
Vector::EqualsMatcher< TEquals (std::vector< T > const &comparator)
 
template<typename T >
Vector::ApproxMatcher< TApprox (std::vector< T > const &comparator)
 
template<typename T >
Vector::UnorderedEqualsMatcher< TUnorderedEquals (std::vector< T > const &target)
 
Impl::NSStringMatchers::Equals Equals (NSString *substr)
 
Impl::NSStringMatchers::Contains Contains (NSString *substr)
 
Impl::NSStringMatchers::StartsWith StartsWith (NSString *substr)
 
Impl::NSStringMatchers::EndsWith EndsWith (NSString *substr)
 

Function Documentation

◆ Approx()

template<typename T >
Vector::ApproxMatcher< T > Catch::Matchers::Approx ( std::vector< T > const & comparator)

Definition at line 170 of file catch_matchers_vector.h.

170 {
171 return Vector::ApproxMatcher<T>( comparator );
172 }

◆ Contains() [1/3]

Impl::NSStringMatchers::Contains Catch::Matchers::Contains ( NSString * substr)
inline

Definition at line 184 of file catch_objc.hpp.

184{ return Impl::NSStringMatchers::Contains( substr ); }

◆ Contains() [2/3]

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

◆ Contains() [3/3]

template<typename T >
Vector::ContainsMatcher< T > Catch::Matchers::Contains ( std::vector< T > const & comparator)

Definition at line 155 of file catch_matchers_vector.h.

◆ EndsWith() [1/2]

Impl::NSStringMatchers::EndsWith Catch::Matchers::EndsWith ( NSString * substr)
inline

Definition at line 190 of file catch_objc.hpp.

190{ return Impl::NSStringMatchers::EndsWith( substr ); }

◆ EndsWith() [2/2]

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

Definition at line 106 of file catch_matchers_string.cpp.

◆ Equals() [1/3]

Impl::NSStringMatchers::Equals Catch::Matchers::Equals ( NSString * substr)
inline

Definition at line 181 of file catch_objc.hpp.

181{ return Impl::NSStringMatchers::Equals( substr ); }

◆ Equals() [2/3]

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

Definition at line 100 of file catch_matchers_string.cpp.

Here is the caller graph for this function:

◆ Equals() [3/3]

template<typename T >
Vector::EqualsMatcher< T > Catch::Matchers::Equals ( std::vector< T > const & comparator)

Definition at line 165 of file catch_matchers_vector.h.

165 {
166 return Vector::EqualsMatcher<T>( comparator );
167 }

◆ Matches()

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

Definition at line 113 of file catch_matchers_string.cpp.

113 {
114 return StdString::RegexMatcher(regex, caseSensitivity);
115 }

◆ Predicate()

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

Definition at line 51 of file catch_matchers_generic.hpp.

51 {
52 return Generic::PredicateMatcher<T>(predicate, description);
53 }

◆ StartsWith() [1/2]

Impl::NSStringMatchers::StartsWith Catch::Matchers::StartsWith ( NSString * substr)
inline

Definition at line 187 of file catch_objc.hpp.

187{ return Impl::NSStringMatchers::StartsWith( substr ); }

◆ StartsWith() [2/2]

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

Definition at line 109 of file catch_matchers_string.cpp.

◆ UnorderedEquals()

template<typename T >
Vector::UnorderedEqualsMatcher< T > Catch::Matchers::UnorderedEquals ( std::vector< T > const & target)

◆ VectorContains()

template<typename T >
Vector::ContainsElementMatcher< T > Catch::Matchers::VectorContains ( T const & comparator)

Definition at line 160 of file catch_matchers_vector.h.

Here is the caller graph for this function:

◆ WithinAbs()

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

Definition at line 143 of file catch_matchers_floating.cpp.

◆ WithinULP() [1/2]

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

Definition at line 135 of file catch_matchers_floating.cpp.

135 {
136 return Floating::WithinUlpsMatcher(target, maxUlpDiff, Floating::FloatingPointKind::Double);
137}

◆ WithinULP() [2/2]

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

Definition at line 139 of file catch_matchers_floating.cpp.

139 {
140 return Floating::WithinUlpsMatcher(target, maxUlpDiff, Floating::FloatingPointKind::Float);
141}