mimic++ v10.0.1
Loading...
Searching...
No Matches
RequirementPolicies.hpp File Reference
#include "mimic++/config/Config.hpp"
#include "mimic++/expectation/Common.hpp"
#include "mimic++/expectation/policies/ArgumentList.hpp"
#include "mimic++/matchers/Common.hpp"
#include "mimic++/utilities/Concepts.hpp"
#include "mimic++/utilities/TypeList.hpp"
#include "mimic++/utilities/UnwrapRef.hpp"
#include <concepts>
#include <cstddef>
#include <functional>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for RequirementPolicies.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mimicpp::expectation::policies::matcher_matches_fn< Matcher >
class  mimicpp::expectation::policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >
class  mimicpp::expectation::policies::ThatRequirement< Target, Matcher >

Namespaces

namespace  mimicpp
namespace  mimicpp::expectation
namespace  mimicpp::expectation::policies
namespace  mimicpp::expect

Functions

template<std::size_t index, typename Matcher, typename Projection = std::identity>
constexpr auto mimicpp::expect::arg (Matcher &&matcher, Projection &&projection={}) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Matcher >, Matcher > &&std::is_nothrow_constructible_v< std::remove_cvref_t< Projection >, Projection >)
 Checks whether the selected argument satisfies the given matcher.
template<std::size_t first, std::size_t... others, typename Matcher, typename... Projections>
constexpr auto mimicpp::expect::args (Matcher &&matcher, Projections &&... projections) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Matcher >, Matcher > &&(... &&std::is_nothrow_move_constructible_v< std::remove_cvref_t< Projections > >))
 Checks whether the selected arguments satisfy the given matcher.
template<typename Matcher>
constexpr auto mimicpp::expect::all_args (Matcher &&matcher) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Matcher >, Matcher >)
 Checks whether the all arguments satisfy the given matcher.
template<typename Target, matcher_for< Target > Matcher>
constexpr auto mimicpp::expect::that (Target &&target, Matcher &&matcher)
 Checks whether the given target satisfies the given matcher.