Namespaces | Functions
Matchers.hpp File Reference

(3)

Matcher functions for test assertions. More...

#include <Balau/Testing/Impl/MatcherClasses.hpp>
Include dependency graph for Matchers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Balau::Testing
 The test runner and test assertion functions.
 

Functions

template<typename E >
ExpectedValue< E, MatcherCompareContains, EvNotUsed, EvNotUsed > contains (const E &expected)
 Does the actual value contains the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareDoesNotContain, EvNotUsed, EvNotUsed > doesNotContain (const E &expected)
 Does the actual value not contain the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareEndsWith, EvNotUsed, EvNotUsed > endsWith (const E &expected)
 Does the actual value end with the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareEquals, EvNotUsed, EvNotUsed > is (const E &expected)
 Is the actual value equal to the supplied expected value? More...
 
template<typename T >
const IsAExpectation< T > isA ()
 Is the type of the actual value castable to the specified type? More...
 
template<typename E , typename V >
ExpectedValue< E, MatcherCompareAlmostEqual, V, EvNotUsed > isAlmostEqual (const E &expected, const V &errorDelta)
 Is the actual value equal to within the specified error limit to the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareGreaterThan, EvNotUsed, EvNotUsed > isGreaterThan (const E &expected)
 Is the actual value greater than the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareGreaterThanOrEqualTo, EvNotUsed, EvNotUsed > isGreaterThanOrEqualTo (const E &expected)
 Is the actual value greater than or equal to the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareLessThan, EvNotUsed, EvNotUsed > isLessThan (const E &expected)
 Is the actual value less than the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareLessThanOrEqualTo, EvNotUsed, EvNotUsed > isLessThanOrEqualTo (const E &expected)
 Is the actual value less than or equal to the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareNotEqual, EvNotUsed, EvNotUsed > isNot (const E &expected)
 Is the actual value not equal to the supplied expected value? More...
 
ExpectedValue< void *, MatcherCompareNotEqual, EvNotUsed, EvNotUsed > isNotNull ()
 Is the actual value not equal to the supplied expected value? More...
 
template<typename E >
ExpectedValue< E, MatcherCompareStartsWith, EvNotUsed, EvNotUsed > startsWith (const E &expected)
 Does the actual value start with the supplied expected value? More...
 
template<typename E >
const ThrowTypeExpectation< E > throws ()
 Does the code block throw the supplied expected exception type? More...
 
template<typename E >
const ThrowExpectation< E > throws (const E &expected)
 Does the code block throw the supplied exception (including the exception's data)? More...
 
template<typename E >
const ThrowExpectationWithPredicate< E > throws (const std::function< bool(const E &)> &predicate)
 Does the code block throw the supplied exception type? More...
 
template<typename E , typename C >
const ThrowExpectationWithFunction< E, C > throws (const E &expected, C comparisonFunction)
 Does the code block throw the supplied exception (including the exception's data)? More...
 

Detailed Description

Matcher functions for test assertions.