Zephyr API 3.6.99
|
Ztest mocking support. More...
Go to the source code of this file.
Macros | |
#define | ztest_expect_value(func, param, value) |
Tell function func to expect the value value for param. | |
#define | ztest_check_expected_value(param) |
If param doesn't match the value set by ztest_expect_value(), fail the test. | |
#define | ztest_expect_data(func, param, data) |
Tell function func to expect the data data for param. | |
#define | ztest_check_expected_data(param, length) |
If data pointed by param don't match the data set by ztest_expect_data(), fail the test. | |
#define | ztest_return_data(func, param, data) |
Tell function func to return the data data for param. | |
#define | ztest_copy_return_data(param, length) |
Copy the data set by ztest_return_data to the memory pointed by param. | |
#define | ztest_returns_value(func, value) |
Tell func that it should return value. | |
#define | ztest_get_return_value() |
Get the return value for current function. | |
#define | ztest_get_return_value_ptr() |
Get the return value as a pointer for current function. | |
Ztest mocking support.