|
#define | __WORDSIZE 32 |
|
#define | LargestIntegralType unsigned long long int |
|
#define | LargestIntegralTypePrintfFormat "0x%I64x" |
|
#define | cast_to_largest_integral_type(value) ((LargestIntegralType)(value)) |
|
#define | _UINTPTR_T |
|
#define | _UINTPTR_T_DEFINED |
|
#define | cast_to_pointer_integral_type(value) ((uintptr_t)((size_t)(value))) |
|
#define | cast_ptr_to_largest_integral_type(value) cast_to_largest_integral_type(cast_to_pointer_integral_type(value)) |
|
#define | CMOCKA_PRINTF_ATTRIBUTE(a, b) |
|
#define | CMOCKA_DEPRECATED |
|
#define | mock() _mock(__func__, __FILE__, __LINE__) |
|
#define | mock_type(type) ((type) mock()) |
|
#define | mock_ptr_type(type) ((type) (uintptr_t) mock()) |
|
#define | will_return(function, value) |
|
#define | will_return_count(function, value, count) |
|
#define | will_return_always(function, value) will_return_count(function, (value), -1) |
|
#define | will_return_maybe(function, value) will_return_count(function, (value), -2) |
|
#define | expect_check(function, parameter, check_function, check_data) |
|
#define | expect_in_set(function, parameter, value_array) expect_in_set_count(function, parameter, value_array, 1) |
|
#define | expect_in_set_count(function, parameter, value_array, count) |
|
#define | expect_not_in_set(function, parameter, value_array) expect_not_in_set_count(function, parameter, value_array, 1) |
|
#define | expect_not_in_set_count(function, parameter, value_array, count) |
|
#define | expect_in_range(function, parameter, minimum, maximum) expect_in_range_count(function, parameter, minimum, maximum, 1) |
|
#define | expect_in_range_count(function, parameter, minimum, maximum, count) |
|
#define | expect_not_in_range(function, parameter, minimum, maximum) expect_not_in_range_count(function, parameter, minimum, maximum, 1) |
|
#define | expect_not_in_range_count(function, parameter, minimum, maximum, count) |
|
#define | expect_value(function, parameter, value) expect_value_count(function, parameter, value, 1) |
|
#define | expect_value_count(function, parameter, value, count) |
|
#define | expect_not_value(function, parameter, value) expect_not_value_count(function, parameter, value, 1) |
|
#define | expect_not_value_count(function, parameter, value, count) |
|
#define | expect_string(function, parameter, string) expect_string_count(function, parameter, string, 1) |
|
#define | expect_string_count(function, parameter, string, count) |
|
#define | expect_not_string(function, parameter, string) expect_not_string_count(function, parameter, string, 1) |
|
#define | expect_not_string_count(function, parameter, string, count) |
|
#define | expect_memory(function, parameter, memory, size) expect_memory_count(function, parameter, memory, size, 1) |
|
#define | expect_memory_count(function, parameter, memory, size, count) |
|
#define | expect_not_memory(function, parameter, memory, size) expect_not_memory_count(function, parameter, memory, size, 1) |
|
#define | expect_not_memory_count(function, parameter, memory, size, count) |
|
#define | expect_any(function, parameter) expect_any_count(function, parameter, 1) |
|
#define | expect_any_count(function, parameter, count) _expect_any(#function, #parameter, __FILE__, __LINE__, count) |
|
#define | check_expected(parameter) |
|
#define | check_expected_ptr(parameter) |
|
#define | assert_true(c) |
|
#define | assert_false(c) |
|
#define | assert_return_code(rc, error) |
|
#define | assert_non_null(c) |
|
#define | assert_null(c) |
|
#define | assert_ptr_equal(a, b) |
|
#define | assert_ptr_not_equal(a, b) |
|
#define | assert_int_equal(a, b) |
|
#define | assert_int_not_equal(a, b) |
|
#define | assert_string_equal(a, b) |
|
#define | assert_string_not_equal(a, b) |
|
#define | assert_memory_equal(a, b, size) |
|
#define | assert_memory_not_equal(a, b, size) |
|
#define | assert_in_range(value, minimum, maximum) |
|
#define | assert_not_in_range(value, minimum, maximum) |
|
#define | assert_in_set(value, values, number_of_values) _assert_in_set(value, values, number_of_values, __FILE__, __LINE__) |
|
#define | assert_not_in_set(value, values, number_of_values) _assert_not_in_set(value, values, number_of_values, __FILE__, __LINE__) |
|
#define | function_called() _function_called(__func__, __FILE__, __LINE__) |
|
#define | expect_function_calls(function, times) _expect_function_call(#function, __FILE__, __LINE__, times) |
|
#define | expect_function_call(function) _expect_function_call(#function, __FILE__, __LINE__, 1) |
|
#define | expect_function_call_any(function) _expect_function_call(#function, __FILE__, __LINE__, -1) |
|
#define | ignore_function_calls(function) _expect_function_call(#function, __FILE__, __LINE__, -2) |
|
#define | fail() _fail(__FILE__, __LINE__) |
|
#define | skip() _skip(__FILE__, __LINE__) |
|
#define | fail_msg(msg, ...) |
|
#define | run_test(f) _run_test(#f, f, NULL, UNIT_TEST_FUNCTION_TYPE_TEST, NULL) |
|
#define | unit_test(f) { #f, f, UNIT_TEST_FUNCTION_TYPE_TEST } |
| Initializes a UnitTest structure. More...
|
|
#define | _unit_test_setup(test, setup) { #test "_" #setup, setup, UNIT_TEST_FUNCTION_TYPE_SETUP } |
|
#define | unit_test_setup(test, setup) |
| Initializes a UnitTest structure with a setup function. More...
|
|
#define | _unit_test_teardown(test, teardown) { #test "_" #teardown, teardown, UNIT_TEST_FUNCTION_TYPE_TEARDOWN } |
|
#define | unit_test_teardown(test, teardown) |
| Initializes a UnitTest structure with a teardown function. More...
|
|
#define | group_test_setup(setup) { "group_" #setup, setup, UNIT_TEST_FUNCTION_TYPE_GROUP_SETUP } |
| Initializes a UnitTest structure for a group setup function. More...
|
|
#define | group_test_teardown(teardown) { "group_" #teardown, teardown, UNIT_TEST_FUNCTION_TYPE_GROUP_TEARDOWN } |
| Initializes a UnitTest structure for a group teardown function. More...
|
|
#define | unit_test_setup_teardown(test, setup, teardown) |
| Initialize an array of UnitTest structures with a setup function for a test and a teardown function. More...
|
|
#define | cmocka_unit_test(f) { #f, f, NULL, NULL, NULL } |
| Initializes a CMUnitTest structure. More...
|
|
#define | cmocka_unit_test_setup(f, setup) { #f, f, setup, NULL, NULL } |
| Initializes a CMUnitTest structure with a setup function. More...
|
|
#define | cmocka_unit_test_teardown(f, teardown) { #f, f, NULL, teardown, NULL } |
| Initializes a CMUnitTest structure with a teardown function. More...
|
|
#define | cmocka_unit_test_setup_teardown(f, setup, teardown) { #f, f, setup, teardown, NULL } |
| Initialize an array of CMUnitTest structures with a setup function for a test and a teardown function. More...
|
|
#define | cmocka_unit_test_prestate(f, state) { #f, f, NULL, NULL, state } |
| Initialize a CMUnitTest structure with given initial state. More...
|
|
#define | cmocka_unit_test_prestate_setup_teardown(f, setup, teardown, state) { #f, f, setup, teardown, state } |
| Initialize a CMUnitTest structure with given initial state, setup and teardown function. More...
|
|
#define | run_tests(tests) _run_tests(tests, sizeof(tests) / sizeof(tests)[0]) |
|
#define | run_group_tests(tests) _run_group_tests(tests, sizeof(tests) / sizeof(tests)[0]) |
|
#define | cmocka_run_group_tests(group_tests, group_setup, group_teardown) _cmocka_run_group_tests(#group_tests, group_tests, sizeof(group_tests) / sizeof(group_tests)[0], group_setup, group_teardown) |
|
#define | cmocka_run_group_tests_name(group_name, group_tests, group_setup, group_teardown) _cmocka_run_group_tests(group_name, group_tests, sizeof(group_tests) / sizeof(group_tests)[0], group_setup, group_teardown) |
|
#define | test_malloc(size) _test_malloc(size, __FILE__, __LINE__) |
|
#define | test_calloc(num, size) _test_calloc(num, size, __FILE__, __LINE__) |
|
#define | test_realloc(ptr, size) _test_realloc(ptr, size, __FILE__, __LINE__) |
|
#define | test_free(ptr) _test_free(ptr, __FILE__, __LINE__) |
|
#define | expect_assert_failure(function_call) |
|