49 std::string
const&
reason() const noexcept;
53 std::move_only_function<
bool()> condition_;
Condition used by a test case to decide whether it should be skipped before running hooks and test co...
Definition skip.hpp:20
skip_condition(std::move_only_function< bool()> condition, std::string_view reason="")
Creates a dynamic skip condition.
bool should_skip()
Checks if the test should be skipped.
std::string const & reason() const noexcept
Returns the skip reason.
skip_condition(std::string_view reason="")
Creates a condition that always skips the test.
Unit test framework functions and types.
Definition test.hpp:15
skip_condition skip_unless(std::move_only_function< bool()> condition, std::string_view reason="")
Creates a condition that skips the test unless the callback returns true.
skip_condition skip_if(std::move_only_function< bool()> condition, std::string_view reason="")
Creates a condition that skips the test when the callback returns true.
skip_condition skip(std::string_view reason="")
Creates a condition that always skips the test.