22 for (i = 0u; i < times; ++i)
53 numberOfCalls = (size_t) ((rand()) % 20 + 2);
#define cmocka_unit_test(f)
Initializes a CMUnitTest structure.
static void test_will_return_maybe_for_more_than_one_call(void **state)
#define will_return_maybe(function, value)
void mock_function_call_times(size_t times, int expectedValue)
int main(int argc, char **argv)
static void test_will_return_maybe_for_one_mock_call(void **state)
static void test_will_return_maybe_for_no_calls(void **state)
#define cmocka_run_group_tests(group_tests, group_setup, group_teardown)
#define assert_int_equal(a, b)