exceptions.h File
C++ header file with declarations for the µTest++ exception-checking functions. 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... | |
Functions Index
template <class Callable_T> | |
| auto | nothrow (Callable_T &&func) |
|
Checks whether a callable does not throw any exception, for expect() or require(). More... | |
template <class Callable_T> | |
| auto | throws (Callable_T &&func) |
|
Checks whether a callable throws any exception, for expect() or require(). More... | |
template <class Exception_T, class Callable_T> | |
| auto | throws (Callable_T &&func) |
|
Checks whether a callable throws a specific exception, for expect() or require(). More... | |
Description
C++ header file with declarations for the µTest++ exception-checking functions.
This header provides the declarations for the exception-checking facilities of the µTest++ framework. It exposes three function templates — throws<Exception_T>(), throws(), and nothrow() — which allow test cases to verify that a callable throws a specific exception, throws any exception, or throws no exception, respectively.
All declarations are conditionally compiled under __cpp_exceptions and reside within the micro_os_plus::micro_test_plus namespace.
This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.