micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
|
Assumptions are conditions that must be met for the test to continue. More...
Functions | |
template<class Expr_T , type_traits::requires_t< type_traits::is_op_v< Expr_T > or type_traits::is_convertible_v< Expr_T, bool > > = 0> | |
constexpr auto | micro_os_plus::micro_test_plus::assume (const Expr_T &expr, const reflection::source_location &sl=reflection::source_location::current()) |
Check a condition and, if false, abort. | |
Assumptions are conditions that must be met for the test to continue.
On failed assumptions, the test cannot continue and it is aborted on the spot.
|
constexpr |
Check a condition and, if false, abort.
Expr_T | The type of the custom expression. |
[in] | expr | Logical expression to evaluate. |
[in] | sl | Optional source location, by default the current line. |
The template is usable only for expressions that evaluate to a boolean or use custom comparators/operators derived from the local detail::op
type.
Definition at line 170 of file micro-test-plus.h.