mimic++ v4
Loading...
Searching...
No Matches
mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > Class Template Reference

#include <ExpectationBuilder.hpp>

Public Types

using StorageT = ExpectationCollection<Signature>
 
using PolicyListT = std::tuple<Policies...>
 
using ReturnT = typename Expectation<Signature>::ReturnT
 

Public Member Functions

 ~BasicExpectationBuilder ()=default
 
template<typename FinalizePolicyArg , typename PolicyListArg >
requires std::constructible_from<FinalizePolicy, FinalizePolicyArg> && std::constructible_from<PolicyListT, PolicyListArg>
constexpr BasicExpectationBuilder (std::shared_ptr< StorageT > storage, detail::TimesConfig timesConfig, SequenceConfig sequenceConfig, FinalizePolicyArg &&finalizePolicyArg, PolicyListArg &&policyListArg) noexcept
 
 BasicExpectationBuilder (const BasicExpectationBuilder &)=delete
 
BasicExpectationBuilderoperator= (const BasicExpectationBuilder &)=delete
 
 BasicExpectationBuilder (BasicExpectationBuilder &&)=default
 
BasicExpectationBuilderoperator= (BasicExpectationBuilder &&)=default
 
template<typename Policy >
requires std::same_as<expectation_policies::InitFinalize, FinalizePolicy> && (!std::same_as<expectation_policies::InitFinalize, std::remove_cvref_t<Policy>>) && finalize_policy_for<std::remove_cvref_t<Policy>, Signature>
constexpr auto operator&& (Policy &&policy) &&
 
template<typename Policy >
requires expectation_policy_for<std::remove_cvref_t<Policy>, Signature>
constexpr auto operator&& (Policy &&policy) &&
 
constexpr auto operator&& (detail::TimesConfig &&config) &&
 
template<typename... Sequences>
constexpr auto operator&& (sequence::detail::Config< Sequences... > &&config) &&
 
ScopedExpectation finalize (const std::source_location &sourceLocation) &&
 

Member Typedef Documentation

◆ PolicyListT

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
using mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::PolicyListT = std::tuple<Policies...>

◆ ReturnT

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
using mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::ReturnT = typename Expectation<Signature>::ReturnT

◆ StorageT

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
using mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::StorageT = ExpectationCollection<Signature>

Constructor & Destructor Documentation

◆ ~BasicExpectationBuilder()

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::~BasicExpectationBuilder ( )
default

◆ BasicExpectationBuilder() [1/3]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
template<typename FinalizePolicyArg , typename PolicyListArg >
requires std::constructible_from<FinalizePolicy, FinalizePolicyArg> && std::constructible_from<PolicyListT, PolicyListArg>
mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::BasicExpectationBuilder ( std::shared_ptr< StorageT > storage,
detail::TimesConfig timesConfig,
SequenceConfig sequenceConfig,
FinalizePolicyArg && finalizePolicyArg,
PolicyListArg && policyListArg )
inlineexplicitnodiscardconstexprnoexcept

◆ BasicExpectationBuilder() [2/3]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::BasicExpectationBuilder ( const BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > & )
delete

◆ BasicExpectationBuilder() [3/3]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::BasicExpectationBuilder ( BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > && )
nodiscarddefault

Member Function Documentation

◆ finalize()

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
ScopedExpectation mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::finalize ( const std::source_location & sourceLocation) &&
inlinenodiscard

◆ operator&&() [1/4]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
auto mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator&& ( detail::TimesConfig && config) &&
inlinenodiscardconstexpr

◆ operator&&() [2/4]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
template<typename Policy >
requires std::same_as<expectation_policies::InitFinalize, FinalizePolicy> && (!std::same_as<expectation_policies::InitFinalize, std::remove_cvref_t<Policy>>) && finalize_policy_for<std::remove_cvref_t<Policy>, Signature>
auto mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator&& ( Policy && policy) &&
inlinenodiscardconstexpr

◆ operator&&() [3/4]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
template<typename Policy >
requires expectation_policy_for<std::remove_cvref_t<Policy>, Signature>
auto mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator&& ( Policy && policy) &&
inlinenodiscardconstexpr

◆ operator&&() [4/4]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
template<typename... Sequences>
auto mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator&& ( sequence::detail::Config< Sequences... > && config) &&
inlinenodiscardconstexpr

◆ operator=() [1/2]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
BasicExpectationBuilder & mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator= ( BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > && )
default

◆ operator=() [2/2]

template<bool timesConfigured, typename SequenceConfig , typename Signature , typename FinalizePolicy , expectation_policy_for< Signature >... Policies>
BasicExpectationBuilder & mimicpp::BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies >::operator= ( const BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > & )
delete

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