|
micro-test-plus 4.1.0
µTest++ Testing Framework
|
C++ header with declarations for the µTest++ exception-checking functions. More...
#include "inlines/exceptions-inline.h"Go to the source code of this file.
Namespaces | |
| namespace | micro_os_plus |
| The primary namespace for the µOS++ framework. | |
| namespace | micro_os_plus::micro_test_plus |
| Primary namespace for the µTest++ testing framework. | |
Functions | |
| template<class Callable_T> | |
| constexpr auto | micro_os_plus::micro_test_plus::nothrow (const Callable_T &func) |
| Check if a callable does not throw an exception. | |
| template<class Callable_T> | |
| constexpr auto | micro_os_plus::micro_test_plus::throws (const Callable_T &func) |
| Check if a callable throws an exception (any exception). | |
| template<class Exception_T, class Callable_T> | |
| constexpr auto | micro_os_plus::micro_test_plus::throws (const Callable_T &func) |
| Check if a callable throws a specific exception. | |
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, ensuring clear separation from user code and minimising the risk of naming conflicts.
This header is located in the top-level include/micro-os-plus folder. Users should include <micro-os-plus/micro-test-plus.h> rather than this header directly.
Definition in file exceptions.h.