micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::callable_result Struct Reference

The result of the invocation of the callable of a check. More...

#include <detail.h>

Public Attributes

throw_outcome outcome
 What was thrown, when the check failed.
bool value
 The result of the check.
std::string what
 The what() of the std::exception thrown, if any.

Detailed Description

Returned by the lambda that the constructors of throws_op and nothrow_op pass to callable_op.

Definition at line 1361 of file detail.h.

Member Data Documentation

◆ outcome

throw_outcome micro_os_plus::micro_test_plus::detail::callable_result::outcome

throw_outcome::none when the check passed, or when nothing was thrown but an exception was expected.

Definition at line 1379 of file detail.h.

◆ value

bool micro_os_plus::micro_test_plus::detail::callable_result::value

True if the expected exception was thrown (throws_op), or if nothing was thrown (nothrow_op).

Definition at line 1370 of file detail.h.

◆ what

std::string micro_os_plus::micro_test_plus::detail::callable_result::what

Empty unless outcome is throw_outcome::std_exception.

Definition at line 1387 of file detail.h.


The documentation for this struct was generated from the following file: