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