Lines Matching refs:cJSON
32 static cJSON *parse_test_file(const char * const filename) in parse_test_file()
35 cJSON *json = NULL; in parse_test_file()
49 static cJSON_bool test_apply_patch(const cJSON * const test) in test_apply_patch()
51 cJSON *doc = NULL; in test_apply_patch()
52 cJSON *patch = NULL; in test_apply_patch()
53 cJSON *expected = NULL; in test_apply_patch()
54 cJSON *error_element = NULL; in test_apply_patch()
55 cJSON *comment = NULL; in test_apply_patch()
56 cJSON *disabled = NULL; in test_apply_patch()
58 cJSON *object = NULL; in test_apply_patch()
122 static cJSON_bool test_generate_test(cJSON *test) in test_generate_test()
124 cJSON *doc = NULL; in test_generate_test()
125 cJSON *patch = NULL; in test_generate_test()
126 cJSON *expected = NULL; in test_generate_test()
127 cJSON *disabled = NULL; in test_generate_test()
129 cJSON *object = NULL; in test_generate_test()
185 cJSON *tests = parse_test_file("json-patch-tests/tests.json"); in cjson_utils_should_pass_json_patch_test_tests()
186 cJSON *test = NULL; in cjson_utils_should_pass_json_patch_test_tests()
202 cJSON *tests = parse_test_file("json-patch-tests/spec_tests.json"); in cjson_utils_should_pass_json_patch_test_spec_tests()
203 cJSON *test = NULL; in cjson_utils_should_pass_json_patch_test_spec_tests()
219 cJSON *tests = parse_test_file("json-patch-tests/cjson-utils-tests.json"); in cjson_utils_should_pass_json_patch_test_cjson_utils_tests()
220 cJSON *test = NULL; in cjson_utils_should_pass_json_patch_test_cjson_utils_tests()