Home
last modified time | relevance | path

Searched refs:cJSON_Delete (Results 1 - 18 of 18) sorted by relevance

/third_party/cJSON/tests/
H A Dcjson_add.c58 cJSON_Delete(root); in cjson_add_null_should_add_null()
68 cJSON_Delete(root); in cjson_add_null_should_fail_with_null_pointers()
81 cJSON_Delete(root); in cjson_add_null_should_fail_on_allocation_failure()
94 cJSON_Delete(root); in cjson_add_true_should_add_true()
104 cJSON_Delete(root); in cjson_add_true_should_fail_with_null_pointers()
117 cJSON_Delete(root); in cjson_add_true_should_fail_on_allocation_failure()
174 cJSON_Delete(root); in cjson_add_false_should_add_false()
184 cJSON_Delete(root); in cjson_add_false_should_fail_with_null_pointers()
197 cJSON_Delete(root); in cjson_add_false_should_fail_on_allocation_failure()
216 cJSON_Delete(roo in cjson_add_bool_should_add_bool()
[all...]
H A Dold_utils_tests.c85 cJSON_Delete(root); in json_pointer_tests()
133 cJSON_Delete(object); in misc_tests()
134 cJSON_Delete(object1); in misc_tests()
135 cJSON_Delete(object3); in misc_tests()
165 cJSON_Delete(sortme); in sort_tests()
187 cJSON_Delete(object_to_be_merged); in merge_tests()
188 cJSON_Delete(patch); in merge_tests()
207 cJSON_Delete(from); in generate_merge_tests()
208 cJSON_Delete(to); in generate_merge_tests()
209 cJSON_Delete(patc in generate_merge_tests()
[all...]
H A Dmisc_tests.c94 cJSON_Delete(item); in cjson_get_object_item_should_get_object_items()
125 cJSON_Delete(item); in cjson_get_object_item_case_sensitive_should_get_object_items()
137 cJSON_Delete(array); in cjson_get_object_item_should_not_crash_with_array()
149 cJSON_Delete(array); in cjson_get_object_item_case_sensitive_should_not_crash_with_array()
358 cJSON_Delete(replacement); in cjson_replace_item_in_object_should_preserve_name()
387 cJSON_Delete(NULL); in cjson_functions_should_not_crash_with_null_pointers()
463 cJSON_Delete(corruptedString); in cjson_functions_should_not_crash_with_null_pointers()
464 cJSON_Delete(array); in cjson_functions_should_not_crash_with_null_pointers()
465 cJSON_Delete(item); in cjson_functions_should_not_crash_with_null_pointers()
517 cJSON_Delete(numbe in cjson_get_string_value_should_get_a_string()
[all...]
H A Dparse_with_opts.c34 cJSON_Delete(item); in parse_with_opts_should_handle_null()
66 cJSON_Delete(item); in parse_with_opts_should_require_null_if_requested()
69 cJSON_Delete(item); in parse_with_opts_should_require_null_if_requested()
81 cJSON_Delete(item); in parse_with_opts_should_return_parse_end()
96 cJSON_Delete(with_bom); in parse_with_opts_should_parse_utf8_bom()
97 cJSON_Delete(without_bom); in parse_with_opts_should_parse_utf8_bom()
H A Djson_patch_tests.c108 cJSON_Delete(object); in test_apply_patch()
151 cJSON_Delete(object); in test_generate_test()
168 cJSON_Delete(patch); in test_generate_test()
169 cJSON_Delete(object); in test_generate_test()
195 cJSON_Delete(tests); in cjson_utils_should_pass_json_patch_test_tests()
212 cJSON_Delete(tests); in cjson_utils_should_pass_json_patch_test_spec_tests()
229 cJSON_Delete(tests); in cjson_utils_should_pass_json_patch_test_cjson_utils_tests()
H A Dparse_examples.c93 cJSON_Delete(tree); in do_test()
153 cJSON_Delete(tree); in file_test6_should_not_be_parsed()
194 cJSON_Delete(tree); in test12_should_not_be_parsed()
223 cJSON_Delete(tree); in test13_should_be_parsed_without_null_termination()
249 cJSON_Delete(tree); in test14_should_not_be_parsed()
H A Dmisc_int64_tests.c68 cJSON_Delete(item); in cjson_get_object_item_should_get_object_items_with_int64()
102 cJSON_Delete(item); in cjson_get_object_item_case_sensitive_should_get_object_items_with_int64()
157 cJSON_Delete(item); in cjson_functions_should_not_crash_with_null_pointers_with_int64()
169 cJSON_Delete(number); in cjson_get_number_value_should_get_a_number_with_int64()
170 cJSON_Delete(string); in cjson_get_number_value_should_get_a_number_with_int64()
H A Dcompare_tests.c40 cJSON_Delete(a_json); in compare_from_string()
41 cJSON_Delete(b_json); in compare_from_string()
152 cJSON_Delete(raw1); in cjson_compare_should_compare_raw()
153 cJSON_Delete(raw2); in cjson_compare_should_compare_raw()
H A Dreadme_examples.c113 cJSON_Delete(monitor); in create_monitor()
164 cJSON_Delete(monitor); in create_monitor_with_helpers()
213 cJSON_Delete(monitor_json); in supports_full_hd()
H A Dmisc_utils_tests.c70 cJSON_Delete(item); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
H A Dcommon.h32 cJSON_Delete(item->child); in reset()
/third_party/cJSON/
H A Dtest.c179 cJSON_Delete(root); in create_objects()
182 cJSON_Delete(root); in create_objects()
188 cJSON_Delete(root); in create_objects()
191 cJSON_Delete(root); in create_objects()
203 cJSON_Delete(root); in create_objects()
206 cJSON_Delete(root); in create_objects()
221 cJSON_Delete(root); in create_objects()
224 cJSON_Delete(root); in create_objects()
244 cJSON_Delete(root); in create_objects()
247 cJSON_Delete(roo in create_objects()
[all...]
H A DcJSON.c265 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) in cJSON_Delete() function
273 cJSON_Delete(item->child); in cJSON_Delete()
1388 cJSON_Delete(item); in cJSON_ParseWithLengthOpts()
1775 cJSON_Delete(head); in parse_array()
1955 cJSON_Delete(head); in parse_object()
2335 cJSON_Delete(null); in cJSON_AddNullToObject()
2347 cJSON_Delete(true_item); in cJSON_AddTrueToObject()
2359 cJSON_Delete(false_item); in cJSON_AddFalseToObject()
2371 cJSON_Delete(bool_item); in cJSON_AddBoolToObject()
2384 cJSON_Delete(int_ite in cJSON_AddInt64NumberToObject()
[all...]
H A DcJSON_Utils.c818 cJSON_Delete(root->child); in overwrite_item()
913 cJSON_Delete(old_item); in apply_patch()
1045 cJSON_Delete(value); in apply_patch()
1345 cJSON_Delete(target); in merge_patch()
1351 cJSON_Delete(target); in merge_patch()
1387 cJSON_Delete(target); in merge_patch()
1483 cJSON_Delete(patch); in generate_merge_patch()
H A DcJSON.h159 /* Memory Management: the caller is always responsible to free the results from all variants of cJSON_Parse (with cJSON_Delete) and cJSON_Print (with stdlib free, cJSON_Hooks.free_fn, or cJSON_free as appropriate). The exception is cJSON_PrintPreallocated, where the caller has full responsibility of the buffer. */
178 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item);
229 * it will not be freed by cJSON_Delete */
232 * they will not be freed by cJSON_Delete */
/third_party/cJSON/fuzzing/
H A Dcjson_read_fuzzer.c69 cJSON_Delete(json); in LLVMFuzzerTestOneInput()
H A Dafl.c158 cJSON_Delete(item); in main()
/third_party/musl/Benchmark/musl/
H A Dbenchmark_framework.cpp400 cJSON_Delete(json); in RegisterJsonBenchmarks()

Completed in 12 milliseconds