mimic++ v6
Loading...
Searching...
No Matches
GeneralMatchers.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/matchers/Common.hpp"
#include <functional>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for GeneralMatchers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mimicpp::PredicateMatcher< Predicate, AdditionalArgs >
 Generic matcher and the basic building block of most of the built-in matchers. More...
 
class  mimicpp::WildcardMatcher
 Matcher, which never fails. More...
 

Namespaces

namespace  mimicpp
 
namespace  mimicpp::matches
 

Functions

template<typename T>
constexpr auto mimicpp::matches::eq (T &&value)
 Tests, whether the target compares equal to the expected value.
 
template<typename T>
constexpr auto mimicpp::matches::ne (T &&value)
 Tests, whether the target compares not equal to the expected value.
 
template<typename T>
constexpr auto mimicpp::matches::lt (T &&value)
 Tests, whether the target is less than the expected value.
 
template<typename T>
constexpr auto mimicpp::matches::le (T &&value)
 Tests, whether the target is less than or equal to the expected value.
 
template<typename T>
constexpr auto mimicpp::matches::gt (T &&value)
 Tests, whether the target is greater than the expected value.
 
template<typename T>
constexpr auto mimicpp::matches::ge (T &&value)
 Tests, whether the target is greater than or equal to the expected value.
 
template<typename UnaryPredicate>
constexpr auto mimicpp::matches::predicate (UnaryPredicate &&predicate, StringViewT description="passes predicate", StringViewT invertedDescription="fails predicate")
 Tests, whether the target fulfills the given predicate.
 
template<satisfies< std::is_lvalue_reference > T>
constexpr auto mimicpp::matches::instance (T &&instance)
 Tests, whether the target is the expected instance.
 

Variables

constexpr WildcardMatcher mimicpp::matches::_ {}
 The wildcard matcher, always matching.