18 #define UNIT_TESTING 1 25 static int setup(
void **state) {
26 int *answer =
malloc(
sizeof(
int));
#define assert_non_null(c)
#define cmocka_unit_test(f)
Initializes a CMUnitTest structure.
static void null_test_success(void **state)
static void int_test_success(void **state)
#define cmocka_unit_test_setup_teardown(f, setup, teardown)
Initialize an array of CMUnitTest structures with a setup function for a test and a teardown function...
#define cmocka_run_group_tests(group_tests, group_setup, group_teardown)
static int teardown(void **state)
static int setup(void **state)
#define assert_int_equal(a, b)