|
| ExpectationValue (ItBase &it, A value, std::source_location location) |
| Create an ExpectationValue using a value.
|
|
| ExpectationValue (A value, std::source_location location=std::source_location::current()) |
|
template<typename U> |
| ExpectationValue (ItBase &it, std::initializer_list< U > init_list, std::source_location location) |
| Create an Expectation using an initializer list.
|
|
A & | get_target () &override |
| Get the target of the expectation.
|
|
ExpectationValue & | not_ () override |
|
ExpectationValue & | ignore () override |
|
| Expectation (std::source_location location) |
|
| Expectation (ItBase &it, std::source_location location) |
| Create an Expectation using a value.
|
|
ItBase * | get_it () const |
|
std::source_location | get_location () const |
|
constexpr bool | positive () const |
| Get whether the expectation is normal or negated.
|
|
constexpr bool | ignored () const |
|
template<class M> |
void | to (M matcher, std::string msg="") |
|
void | to_be_false (std::string msg="") |
| Match using the Matchers::Be matcher, testing for falsy-ness.
|
|
void | to_be_falsy (std::string msg="") |
|
void | to_be_null (std::string msg="") |
| Match using the Matchers::BeNullptr matcher.
|
|
void | to_be_true (std::string msg="") |
| Match using the Matchers::Be matcher, testing for truthy-ness.
|
|
void | to_be_truthy (std::string msg="") |
|
template<typename E> |
void | to_be_between (E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") |
| Match using the Matchers::BeBetween matcher, with an explicit range mode.
|
|
template<typename E> |
void | to_be_greater_than (E rhs, std::string msg="") |
|
template<typename E> |
void | to_be_less_than (E rhs, std::string msg="") |
|
template<typename E> |
Matchers::BeWithinHelper< A, E > | to_be_within (E expected, std::string msg="") |
| Match using the Matchers::BeWithin matcher.
|
|
void | to_end_with (std::string ending, std::string msg="") |
|
void | to_fail (std::string msg="") |
|
void | to_fail_with (std::string failure_message, std::string msg="") |
|
void | to_match (std::regex regex, std::string msg="") |
|
void | to_match (std::string str, std::string msg="") |
|
void | to_partially_match (std::regex regex, std::string msg="") |
|
void | to_partially_match (std::string str, std::string msg="") |
|
void | to_satisfy (std::function< bool(A)>, std::string msg="") |
| Match using the Matchers::Satisfy matcher.
|
|
void | to_start_with (std::string start, std::string msg="") |
|
template<typename U> |
void | to_contain (std::initializer_list< U > expected, std::string msg="") |
| Match using the Matchers::Include matcher, given an initializer list.
|
|
template<typename E> |
void | to_contain (E expected, std::string msg="") |
| Match using the Matchers::Include matcher.
|
|
template<typename U> |
void | to_end_with (std::initializer_list< U > start, std::string msg="") |
|
template<typename E> |
void | to_equal (E expected, std::string msg="") |
| Match using the Matchers::Equal matcher.
|
|
template<typename U> |
void | to_start_with (std::initializer_list< U > start, std::string msg="") |
|
void | to_have_value (std::string msg="") |
|