mimic++ v9.2.1
Loading...
Searching...
No Matches
GeneralMatchers.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/config/Config.hpp"
#include "mimic++/matchers/Common.hpp"
#include "mimic++/printing/Format.hpp"
#include "mimic++/printing/Fwd.hpp"
#include "mimic++/printing/StatePrinter.hpp"
#include "mimic++/utilities/Concepts.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...
 
class  mimicpp::TypeMatcher< T >
 Matcher, which can be used to disambiguate between similar overloads. 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<util::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.
 
template<typename T>
constexpr TypeMatcher< T > mimicpp::matches::type {}
 Matcher, which can be used as a last resort to disambiguate similar overloads.