mimic++ v4
Loading...
Searching...
No Matches
mimicpp::expectation_policies::Requirement< Matcher, Projection, Describer > Class Template Reference

#include <ExpectationPolicies.hpp>

Public Member Functions

constexpr Requirement (Matcher matcher, Projection projection={}, Describer describer={}) noexcept(std::is_nothrow_move_constructible_v< Matcher > &&std::is_nothrow_move_constructible_v< Projection > &&std::is_nothrow_move_constructible_v< Describer >)
 
template<typename Return , typename... Args>
requires std::invocable<const Projection&, const call::Info<Return, Args...>&> && matcher_for< Matcher, std::invoke_result_t<const Projection&, const call::Info<Return, Args...>&>>
constexpr bool matches (const call::Info< Return, Args... > &info) const
 
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

◆ Requirement()

template<typename Matcher , typename Projection , typename Describer >
mimicpp::expectation_policies::Requirement< Matcher, Projection, Describer >::Requirement ( Matcher matcher,
Projection projection = {},
Describer describer = {} )
inlineexplicitnodiscardconstexprnoexcept

Member Function Documentation

◆ consume()

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

◆ describe()

template<typename Matcher , typename Projection , typename Describer >
StringT mimicpp::expectation_policies::Requirement< Matcher, Projection, Describer >::describe ( ) const
inlinenodiscard

◆ is_satisfied()

template<typename Matcher , typename Projection , typename Describer >
static constexpr bool mimicpp::expectation_policies::Requirement< Matcher, Projection, Describer >::is_satisfied ( )
inlinestaticconstexprnoexcept

◆ matches()

template<typename Matcher , typename Projection , typename Describer >
template<typename Return , typename... Args>
requires std::invocable<const Projection&, const call::Info<Return, Args...>&> && matcher_for< Matcher, std::invoke_result_t<const Projection&, const call::Info<Return, Args...>&>>
bool mimicpp::expectation_policies::Requirement< Matcher, Projection, Describer >::matches ( const call::Info< Return, Args... > & info) const
inlinenodiscardconstexpr

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