mimic++ v6
Loading...
Searching...
No Matches
ArgRequirementPolicies.hpp File Reference
#include "mimic++/matchers/Common.hpp"
#include "mimic++/policies/ArgumentList.hpp"
#include <concepts>
#include <functional>
#include <tuple>
#include <type_traits>
#include <utility>
Include dependency graph for ArgRequirementPolicies.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 >
 

Namespaces

namespace  mimicpp
 
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.