Skip to main content

callable_result Struct

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

Declaration​

struct micro_os_plus::micro_test_plus::detail::callable_result { ... }

Included Headers​

#include <detail.h>

Public Member Attributes Index​

throw_outcomeoutcome

What was thrown, when the check failed. More...

boolvalue

The result of the check. More...

std::stringwhat

The what() of the std::exception thrown, if any. More...

Description​

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

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.

Public Member Attributes​

outcome​

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

What was thrown, when the check failed.

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

The result of the check.

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

Definition at line 1370 of file detail.h.

1370 bool value;

what​

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

The what() of the std::exception thrown, if any.

Empty unless outcome is throw_outcome::std_exception.

Definition at line 1387 of file detail.h.

1387 std::string what;

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


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.