Searched refs:cJSONUtils_GetPointer (Results 1 – 4 of 4) sorted by relevance
/third_party/cJSON/tests/ |
D | old_utils_tests.c | 71 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, ""), root); in json_pointer_tests() 72 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo"), cJSON_GetObjectItem(root, "foo")); in json_pointer_tests() 73 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 74 …TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/foo/0"), cJSON_GetObjectItem(root, "foo")->chi… in json_pointer_tests() 75 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/"), cJSON_GetObjectItem(root, "")); in json_pointer_tests() 76 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/a~1b"), cJSON_GetObjectItem(root, "a/b")); in json_pointer_tests() 77 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c%d"), cJSON_GetObjectItem(root, "c%d")); in json_pointer_tests() 78 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c^f"), cJSON_GetObjectItem(root, "c^f")); in json_pointer_tests() 79 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/c|f"), cJSON_GetObjectItem(root, "c|f")); in json_pointer_tests() 80 TEST_ASSERT_EQUAL_PTR(cJSONUtils_GetPointer(root, "/i\\j"), cJSON_GetObjectItem(root, "i\\j")); in json_pointer_tests() [all …]
|
D | misc_utils_tests.c | 37 TEST_ASSERT_NULL(cJSONUtils_GetPointer(item, NULL)); in cjson_utils_functions_shouldnt_crash_with_null_pointers() 38 TEST_ASSERT_NULL(cJSONUtils_GetPointer(NULL, "pointer")); in cjson_utils_functions_shouldnt_crash_with_null_pointers()
|
/third_party/cJSON/ |
D | cJSON_Utils.h | 34 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer);
|
D | cJSON_Utils.c | 348 CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer) in cJSONUtils_GetPointer() function
|