mimic++ v6
Loading...
Searching...
No Matches
mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy > Class Template Reference

#include <ArgRequirementPolicies.hpp>

Public Member Functions

constexpr ArgsRequirement (Matcher matcher, MatchesStrategy matchesStrategy, DescribeStrategy describeStrategy) noexcept(std::is_nothrow_move_constructible_v< Matcher > &&std::is_nothrow_move_constructible_v< MatchesStrategy > &&std::is_nothrow_move_constructible_v< DescribeStrategy >)
 
template<typename Return, typename... Args>
requires std::is_invocable_r_v<bool, const MatchesStrategy&, matcher_matches_fn<Matcher>, const call::Info<Return, Args...>&>
constexpr bool matches (const call::Info< Return, Args... > &info) const noexcept(std::is_nothrow_invocable_v< const MatchesStrategy &, matcher_matches_fn< Matcher >, const call::Info< Return, Args... > & >)
 
StringT describe () const
 

Static Public Member Functions

static constexpr bool is_satisfied () noexcept
 
template<typename Return, typename... Args>
static constexpr void consume (const call::Info< Return, Args... > &info) noexcept
 

Constructor & Destructor Documentation

◆ ArgsRequirement()

template<typename Matcher, typename MatchesStrategy, typename DescribeStrategy>
mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >::ArgsRequirement ( Matcher matcher,
MatchesStrategy matchesStrategy,
DescribeStrategy describeStrategy )
inlineexplicitnodiscardconstexprnoexcept

Member Function Documentation

◆ consume()

template<typename Matcher, typename MatchesStrategy, typename DescribeStrategy>
template<typename Return, typename... Args>
static constexpr void mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >::consume ( const call::Info< Return, Args... > & info)
inlinestaticconstexprnoexcept

◆ describe()

template<typename Matcher, typename MatchesStrategy, typename DescribeStrategy>
StringT mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >::describe ( ) const
inlinenodiscard

◆ is_satisfied()

template<typename Matcher, typename MatchesStrategy, typename DescribeStrategy>
static constexpr bool mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >::is_satisfied ( )
inlinestaticnodiscardconstexprnoexcept

◆ matches()

template<typename Matcher, typename MatchesStrategy, typename DescribeStrategy>
template<typename Return, typename... Args>
requires std::is_invocable_r_v<bool, const MatchesStrategy&, matcher_matches_fn<Matcher>, const call::Info<Return, Args...>&>
bool mimicpp::expectation_policies::ArgsRequirement< Matcher, MatchesStrategy, DescribeStrategy >::matches ( const call::Info< Return, Args... > & info) const
inlinenodiscardconstexprnoexcept

The documentation for this class was generated from the following file: