Lines Matching full:value

27  * @brief Tell function @a func to expect the value @a value for @a param
29 * When using ztest_check_expected_value(), tell that the value of @a param
30 * should be @a value. The value will internally be stored as an `uintptr_t`.
33 * @param param Parameter for which the value should be set
34 * @param value Value for @a param
36 #define ztest_expect_value(func, param, value) \ argument
38 (uintptr_t)(value))
41 * @brief If @a param doesn't match the value set by ztest_expect_value(),
44 * This will first check that does @a param have a value to be expected, and
45 * then checks whether the value of the parameter is equal to the expected
46 * value. If either of these checks fail, the current test will fail. This
114 * @brief Tell @a func that it should return @a value
116 * @param func Function that should return @a value
117 * @param value Value to return from @a func
119 #define ztest_returns_value(func, value) \ argument
120 z_ztest_returns_value(STRINGIFY(func), (uintptr_t)(value))
123 * @brief Get the return value for current function
125 * The return value must have been set previously with ztest_returns_value().
126 * If no return value exists, the current test will fail.
128 * @returns The value the current function should return
133 * @brief Get the return value as a pointer for current function
135 * The return value must have been set previously with ztest_returns_value().
136 * If no return value exists, the current test will fail.
138 * @returns The value the current function should return as a `void *`
158 void z_ztest_expect_value(const char *fn, const char *name, uintptr_t value);
160 uintptr_t value);
170 void z_ztest_returns_value(const char *fn, uintptr_t value);