mimic++ v4
Loading...
Searching...
No Matches
mimicpp::expect Namespace Reference

Functions

constexpr auto times (const int min, const int max)
 Specifies a times policy with a limit range.
 
constexpr auto times (const int exactly)
 Specifies a times policy with an exact limit.
 
constexpr auto at_least (const int min)
 Specifies a times policy with just a lower limit.
 
constexpr auto at_most (const int max)
 Specifies a times policy with just an upper limit.
 
consteval auto once () noexcept
 Specifies a times policy with both limits set to 1.
 
consteval auto twice () noexcept
 Specifies a times policy with both limits set to 2.
 
template<std::size_t index, typename Matcher , typename Projection = std::identity>
constexpr auto arg (Matcher &&matcher, Projection projection={}) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Matcher >, Matcher > &&std::is_nothrow_move_constructible_v< Projection >)
 Checks, whether the selected argument matches the given matcher.
 
template<typename Id , auto priorityStrategy>
constexpr auto in_sequence (sequence::detail::BasicSequenceInterface< Id, priorityStrategy > &sequence) noexcept
 Attaches the expectation onto a sequence.
 
template<typename FirstId , auto firstPriorityStrategy, typename SecondId , auto secondPriorityStrategy, typename... OtherIds, auto... otherPriorityStrategies>
constexpr auto in_sequences (sequence::detail::BasicSequenceInterface< FirstId, firstPriorityStrategy > &firstSequence, sequence::detail::BasicSequenceInterface< SecondId, secondPriorityStrategy > &secondSequence, sequence::detail::BasicSequenceInterface< OtherIds, otherPriorityStrategies > &... otherSequences)
 Attaches the expectation onto the listed sequences.