check-result.h File
C++ header file with declarations for the µTest++ check result. More...
Included Headers
Namespaces Index
| namespace | micro_os_plus |
|
The primary namespace for the µOS++ framework. More... | |
| namespace | micro_test_plus |
|
Primary namespace for the µTest++ testing framework. More... | |
| namespace | detail |
|
Internal implementation details for the µTest++ framework. More... | |
Classes Index
| class | check_result |
|
The result of one check, reported when destroyed. More... | |
| struct | failure_info |
|
The details of a check, displayed when it fails. More... | |
Enumerations Index
| enum class | check_kind { ... } |
|
The kind of a check, which determines what happens when it fails. More... | |
Description
C++ header file with declarations for the µTest++ check result.
This header provides the check_result class, the object returned by expect() and require(), together with the check_kind enumeration and the failure_info structure, passed to the reporter. The check result captures the result of one check and reports the outcome only when it is destroyed (i.e. at the semicolon following the expression statement), after the optional user message was appended via operator<<.
It also defines failed_requirement, the exception thrown to stop a test case after a failed require().
All live in the detail namespace and are not part of the public API.
This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.
Enumerations
check_kind
| strong |
The kind of a check, which determines what happens when it fails.
- Enumeration values
An enumeration rather than a Boolean flag, so that the call sites name the kind of the check.
Definition at line 93 of file check-result.h.
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.