Macros for performing checks related to exceptions handling. More...
Macros | |
| #define | TTS_NO_THROW(EXPR, ...) |
| Checks if a given expression throws no exception. | |
| #define | TTS_THROW(EXPR, EXCEPTION, ...) |
| Checks if a given expression throws an exception of a given type. | |
| #define TTS_NO_THROW | ( | EXPR, | |
| ... | |||
| ) |
#include <tts/test/exceptions.hpp>
Checks if a given expression throws no exception.
| EXPR | Expression to evaluate. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_THROW | ( | EXPR, | |
| EXCEPTION, | |||
| ... | |||
| ) |
#include <tts/test/exceptions.hpp>
Checks if a given expression throws an exception of a given type.
| EXPR | Expression to evaluate. |
| EXCEPTION | Expected exception type to be thrown. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |