• Home
  • Raw
  • Download

Lines Matching refs:cJSON_GetObjectItem

74     found = cJSON_GetObjectItem(NULL, "test");  in cjson_get_object_item_should_get_object_items()
77 found = cJSON_GetObjectItem(item, NULL); in cjson_get_object_item_should_get_object_items()
81 found = cJSON_GetObjectItem(item, "one"); in cjson_get_object_item_should_get_object_items()
85 found = cJSON_GetObjectItem(item, "tWo"); in cjson_get_object_item_should_get_object_items()
89 found = cJSON_GetObjectItem(item, "three"); in cjson_get_object_item_should_get_object_items()
93 found = cJSON_GetObjectItem(item, "four"); in cjson_get_object_item_should_get_object_items()
135 found = cJSON_GetObjectItem(array, "name"); in cjson_get_object_item_should_not_crash_with_array()
368 TEST_ASSERT_NULL(cJSON_GetObjectItem(NULL, "item")); in cjson_functions_should_not_crash_with_null_pointers()
369 TEST_ASSERT_NULL(cJSON_GetObjectItem(item, NULL)); in cjson_functions_should_not_crash_with_null_pointers()
634 return_value = cJSON_SetValuestring(cJSON_GetObjectItem(root, "one"), short_valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
637 TEST_ASSERT_EQUAL_STRING(short_valuestring, cJSON_GetObjectItem(root, "one")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
641 return_value = cJSON_SetValuestring(cJSON_GetObjectItem(root, "one"), long_valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
644 TEST_ASSERT_EQUAL_STRING(long_valuestring, cJSON_GetObjectItem(root, "one")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
646 return_value = cJSON_SetValuestring(cJSON_GetObjectItem(root, "two"), long_valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()
648 TEST_ASSERT_EQUAL_STRING(reference_valuestring, cJSON_GetObjectItem(root, "two")->valuestring); in cjson_set_valuestring_to_object_should_not_leak_memory()