mimic++ v5
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
 
ScopedExpectation finalize (const std::source_location &sourceLocation) &&
 

Friends

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&& (BasicExpectationBuilder &&builder, Policy &&policy)
 
template<typename Policy >
requires expectation_policy_for<std::remove_cvref_t<Policy>, Signature>
constexpr auto operator&& (BasicExpectationBuilder &&builder, Policy &&policy)
 
constexpr auto operator&& (BasicExpectationBuilder &&builder, detail::TimesConfig &&config)
 
template<typename... Sequences>
constexpr auto operator&& (BasicExpectationBuilder &&builder, sequence::detail::Config< Sequences... > &&config)
 

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/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

Friends And Related Symbol Documentation

◆ operator&& [1/4]

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

◆ 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 operator&& ( BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > && builder,
Policy && policy )
friend

◆ 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 operator&& ( BasicExpectationBuilder< timesConfigured, SequenceConfig, Signature, FinalizePolicy, Policies > && builder,
Policy && policy )
friend

◆ operator&& [4/4]

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

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