Expectation handling support functionality. More...
Macros | |
| #define | MCUX_CSSL_FP_EXPECT(...) |
| Declaration(s) of expected code flow behavior. More... | |
| #define | MCUX_CSSL_FP_CONDITIONAL(condition, ...) |
| Handling of conditionally expected code flow behavior. More... | |
| #define | MCUX_CSSL_FP_ASSERT(...) |
| Assert an expected state of the code flow. More... | |
Expectation handling support functionality.
| #define MCUX_CSSL_FP_EXPECT | ( | ... | ) |
Declaration(s) of expected code flow behavior.
This macro can be used to indicate expectations in the function body at another location than the function entry or exit.
| ... | The following parameters need to be passed (comma separated):
|
| #define MCUX_CSSL_FP_CONDITIONAL | ( | condition, | |
| ... | |||
| ) |
Handling of conditionally expected code flow behavior.
This macro can be used to indicate expectations that are only true under a given condition.
| condition | Condition under which the given expectations apply. |
| ... | One or more (comma separated) declarations of expected code flow behavior. |
| #define MCUX_CSSL_FP_ASSERT | ( | ... | ) |
Assert an expected state of the code flow.
This macro can be used to check whether the code flow up to this point matches the expected state. Unlike the MCUX_CSSL_FP_EXPECT macro, it will not update the expectations, but merely perform a check on the recorded events against the already recorded expectations plus the ones provided as parameters.
If the check fails, the code defined in MCUX_CSSL_FP_ASSERT_CALLBACK() will be executed.
| ... | The following parameters need to be passed (comma separated):
|