Lines Matching refs:fn

15 	const char *fn;  member
153 static struct parameter *find_and_delete_value(struct parameter *param, const char *fn, in find_and_delete_value() argument
162 if (strcmp(param->next->name, name) || strcmp(param->next->fn, fn)) { in find_and_delete_value()
163 return find_and_delete_value(param->next, fn, name); in find_and_delete_value()
173 static void insert_value(struct parameter *param, const char *fn, const char *name, uintptr_t val) in insert_value() argument
178 value->fn = fn; in insert_value()
195 void z_ztest_expect_value(const char *fn, const char *name, uintptr_t val) in z_ztest_expect_value() argument
197 insert_value(&parameter_list, fn, name, val); in z_ztest_expect_value()
200 void z_ztest_check_expected_value(const char *fn, const char *name, uintptr_t val) in z_ztest_check_expected_value() argument
205 param = find_and_delete_value(&parameter_list, fn, name); in z_ztest_check_expected_value()
207 PRINT_DATA("Failed to find parameter %s for %s\n", name, fn); in z_ztest_check_expected_value()
218 PRINT_DATA("%s:%s received wrong value: Got %lu, expected %lu\n", fn, name, in z_ztest_check_expected_value()
224 void z_ztest_expect_data(const char *fn, const char *name, void *val) in z_ztest_expect_data() argument
226 insert_value(&parameter_list, fn, name, (uintptr_t)val); in z_ztest_expect_data()
229 void z_ztest_check_expected_data(const char *fn, const char *name, void *data, uint32_t length) in z_ztest_check_expected_data() argument
234 param = find_and_delete_value(&parameter_list, fn, name); in z_ztest_check_expected_data()
236 PRINT_DATA("Failed to find parameter %s for %s\n", name, fn); in z_ztest_check_expected_data()
249 PRINT_DATA("%s:%s received data while expected null pointer\n", fn, name); in z_ztest_check_expected_data()
252 PRINT_DATA("%s:%s received null pointer while expected data\n", fn, name); in z_ztest_check_expected_data()
256 PRINT_DATA("%s:%s data provided don't match\n", fn, name); in z_ztest_check_expected_data()
262 void z_ztest_return_data(const char *fn, const char *name, void *val) in z_ztest_return_data() argument
264 insert_value(&parameter_list, fn, name, (uintptr_t)val); in z_ztest_return_data()
267 void z_ztest_copy_return_data(const char *fn, const char *name, void *data, uint32_t length) in z_ztest_copy_return_data() argument
273 PRINT_DATA("%s:%s received null pointer\n", fn, name); in z_ztest_copy_return_data()
278 param = find_and_delete_value(&parameter_list, fn, name); in z_ztest_copy_return_data()
280 PRINT_DATA("Failed to find parameter %s for %s\n", name, fn); in z_ztest_copy_return_data()
290 void z_ztest_returns_value(const char *fn, uintptr_t value) in z_ztest_returns_value() argument
292 insert_value(&return_value_list, fn, "", value); in z_ztest_returns_value()
295 uintptr_t z_ztest_get_return_value(const char *fn) in z_ztest_get_return_value() argument
298 struct parameter *param = find_and_delete_value(&return_value_list, fn, ""); in z_ztest_get_return_value()
301 PRINT_DATA("Failed to find return value for function %s\n", fn); in z_ztest_get_return_value()
327 PRINT_DATA("Parameter not used by mock: %s:%s\n", parameter_list.next->fn, in z_cleanup_mock()
332 PRINT_DATA("Return value no used by mock: %s\n", return_value_list.next->fn); in z_cleanup_mock()