22 for (i = 0u; i < times; ++i)
43 numberOfCalls = (size_t) ((rand()) % 20 + 2);
void mock_function_call_times(size_t times, int expectedValue)
static void test_will_return_count_fails_for_unreturned_items(void **state)
static void test_will_return_fails_for_no_calls(void **state)
static void test_will_return_always_fails_for_no_calls(void **state)
static int teardown(void **state)
#define will_return_count(function, value, count)
int main(int argc, char **argv)
#define will_return_always(function, value)
#define will_return(function, value)
#define cmocka_run_group_tests(group_tests, group_setup, group_teardown)
#define cmocka_unit_test_teardown(f, teardown)
Initializes a CMUnitTest structure with a teardown function.
#define assert_int_equal(a, b)