mimic++ v1
|
Functions | |
template<std::size_t min, std::size_t max = min> requires (min <= max) | |
consteval auto | times () noexcept |
Specifies arbitrary limits with compile time arguments. | |
constexpr auto | times (const std::size_t min, const std::size_t max) |
Specifies a times policy with a limit range. | |
constexpr auto | times (const std::size_t exactly) noexcept |
Specifies a times policy with an explicit limit. | |
template<std::size_t min> | |
consteval auto | at_least () noexcept |
Specifies a times policy with just a lower limit. | |
constexpr auto | at_least (const std::size_t min) noexcept |
Specifies a times policy with just a lower limit. | |
template<std::size_t max> | |
consteval auto | at_most () noexcept |
Specifies a times policy with just an upper limit. | |
constexpr auto | at_most (const std::size_t max) noexcept |
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 > | |
constexpr auto | arg (Matcher &&matcher) noexcept(std::is_nothrow_constructible_v< std::remove_cvref_t< Matcher >, Matcher && >) |
Checks, whether the selected argument matches the given matcher. | |
auto | in_sequence (Sequence &sequence, const std::size_t times=1u) |
Attaches the expectation onto a sequence. | |
template<std::size_t size> | |
auto | in_sequences (const std::reference_wrapper< Sequence >(&sequences)[size], const std::size_t times=1u) |
Attaches the expectation onto the listed sequences. | |