• Home
  • Raw
  • Download

Lines Matching refs:cJSON

34     cJSON array[1];  in cjson_array_foreach_should_loop_over_arrays()
35 cJSON elements[10]; in cjson_array_foreach_should_loop_over_arrays()
36 cJSON *element_pointer = NULL; in cjson_array_foreach_should_loop_over_arrays()
62 cJSON *array = NULL; in cjson_array_foreach_should_not_dereference_null_pointer()
63 cJSON *element = NULL; in cjson_array_foreach_should_not_dereference_null_pointer()
69 cJSON *item = NULL; in cjson_get_object_item_should_get_object_items()
70 cJSON *found = NULL; in cjson_get_object_item_should_get_object_items()
101 cJSON *item = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items()
102 cJSON *found = NULL; in cjson_get_object_item_case_sensitive_should_get_object_items()
131 cJSON *array = NULL; in cjson_get_object_item_should_not_crash_with_array()
132 cJSON *found = NULL; in cjson_get_object_item_should_not_crash_with_array()
142 cJSON *array = NULL; in cjson_get_object_item_case_sensitive_should_not_crash_with_array()
143 cJSON *found = NULL; in cjson_get_object_item_case_sensitive_should_not_crash_with_array()
154 cJSON invalid[1]; in typecheck_functions_should_check_type()
155 cJSON item[1]; in typecheck_functions_should_check_type()
224 cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number, NULL, 0, 0, NULL}}; in cjson_set_number_value_should_set_numbers()
245 cJSON list[4]; in cjson_detach_item_via_pointer_should_detach_items()
246 cJSON parent[1]; in cjson_detach_item_via_pointer_should_detach_items()
285 cJSON replacements[3]; in cjson_replace_item_via_pointer_should_replace_items()
286 cJSON *beginning = NULL; in cjson_replace_item_via_pointer_should_replace_items()
287 cJSON *middle = NULL; in cjson_replace_item_via_pointer_should_replace_items()
288 cJSON *end = NULL; in cjson_replace_item_via_pointer_should_replace_items()
289 cJSON *array = NULL; in cjson_replace_item_via_pointer_should_replace_items()
332 cJSON root[1] = {{ NULL, NULL, NULL, 0, NULL, 0, 0, NULL }}; in cjson_replace_item_in_object_should_preserve_name()
333 cJSON *child = NULL; in cjson_replace_item_in_object_should_preserve_name()
334 cJSON *replacement = NULL; in cjson_replace_item_in_object_should_preserve_name()
355 cJSON *item = cJSON_CreateString("item"); in cjson_functions_should_not_crash_with_null_pointers()
480 cJSON *string = cJSON_CreateString("test"); in cjson_get_string_value_should_get_a_string()
481 cJSON *number = cJSON_CreateNumber(1); in cjson_get_string_value_should_get_a_string()
493 cJSON *string = cJSON_CreateString("test"); in cjson_get_number_value_should_get_a_number()
494 cJSON *number = cJSON_CreateNumber(1); in cjson_get_number_value_should_get_a_number()
507 cJSON *string_reference = cJSON_CreateStringReference(string); in cjson_create_string_reference_should_create_a_string_reference()
515 cJSON *number_reference = NULL; in cjson_create_object_reference_should_create_an_object_reference()
516 cJSON *number_object = cJSON_CreateObject(); in cjson_create_object_reference_should_create_an_object_reference()
517 cJSON *number = cJSON_CreateNumber(42); in cjson_create_object_reference_should_create_an_object_reference()
533 cJSON *number_reference = NULL; in cjson_create_array_reference_should_create_an_array_reference()
534 cJSON *number_array = cJSON_CreateArray(); in cjson_create_array_reference_should_create_an_array_reference()
535 cJSON *number = cJSON_CreateNumber(42); in cjson_create_array_reference_should_create_an_array_reference()
551 cJSON *object = cJSON_CreateObject(); in cjson_add_item_to_object_or_array_should_not_add_itself()
552 cJSON *array = cJSON_CreateArray(); in cjson_add_item_to_object_or_array_should_not_add_itself()
567 cJSON *object = cJSON_CreateObject(); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()
568 cJSON *number = cJSON_CreateNumber(42); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()
593 cJSON *root = cJSON_Parse("{}"); in cjson_delete_item_from_array_should_not_broken_list_structure()
595 cJSON *array = cJSON_AddArrayToObject(root, "rd"); in cjson_delete_item_from_array_should_not_broken_list_structure()
596 cJSON *item1 = cJSON_Parse("{\"a\":\"123\"}"); in cjson_delete_item_from_array_should_not_broken_list_structure()
597 cJSON *item2 = cJSON_Parse("{\"b\":\"456\"}"); in cjson_delete_item_from_array_should_not_broken_list_structure()
620 cJSON *root = cJSON_Parse("{}"); in cjson_set_valuestring_to_object_should_not_leak_memory()
625 cJSON *item1 = cJSON_CreateString(stringvalue); in cjson_set_valuestring_to_object_should_not_leak_memory()
626 cJSON *item2 = cJSON_CreateStringReference(reference_valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()