4 static int test_isds_fulltext_result_free(
5 struct isds_fulltext_result
**result
) {
6 isds_fulltext_result_free(result
);
7 if (NULL
== result
) PASS_TEST
;
10 FAIL_TEST("isds_fulltext_result_free() did not null pointer");
18 INIT_TEST("isds_fulltext_result_free()");
20 ABORT_UNIT("isds_init() failed");
22 struct isds_fulltext_result
*result
= NULL
;
23 TEST("NULL", test_isds_fulltext_result_free
, NULL
);
24 TEST("*NULL", test_isds_fulltext_result_free
, &result
);
27 TEST("Empty structure", test_isds_fulltext_result_free
, &result
);
30 TEST_FILL_STRING(result
->dbID
);
31 TEST_FILL_STRING(result
->name
);
32 TEST_CALLOC(result
->name_match_start
);
33 TEST_CALLOC(result
->name_match_end
);
34 TEST_FILL_STRING(result
->address
);
35 TEST_CALLOC(result
->address_match_start
);
36 TEST_CALLOC(result
->address_match_end
);
37 TEST_FILL_STRING(result
->ic
);
38 TEST_CALLOC(result
->biDate
);
39 TEST("Full structure", test_isds_fulltext_result_free
, &result
);