• Home
  • Raw
  • Download

Lines Matching full:patch

52     cJSON *patch = NULL;  in test_apply_patch()  local
81 patch = cJSON_GetObjectItemCaseSensitive(test, "patch"); in test_apply_patch()
82 TEST_ASSERT_NOT_NULL_MESSAGE(patch, "No \"patch\"in the test."); in test_apply_patch()
92 …TEST_ASSERT_TRUE_MESSAGE(0 != cJSONUtils_ApplyPatchesCaseSensitive(object, patch), "Test didn't fa… in test_apply_patch()
98 /* apply the patch */ in test_apply_patch()
99 …TEST_ASSERT_EQUAL_INT_MESSAGE(0, cJSONUtils_ApplyPatchesCaseSensitive(object, patch), "Failed to a… in test_apply_patch()
125 cJSON *patch = NULL; in test_generate_test() local
156 patch = cJSONUtils_GeneratePatchesCaseSensitive(doc, expected); in test_generate_test()
157 TEST_ASSERT_NOT_NULL_MESSAGE(patch, "Failed to generate patches."); in test_generate_test()
159 printed_patch = cJSON_Print(patch); in test_generate_test()
163 /* apply the generated patch */ in test_generate_test()
164 …MESSAGE(0, cJSONUtils_ApplyPatchesCaseSensitive(object, patch), "Failed to apply generated patch."… in test_generate_test()
168 cJSON_Delete(patch); in test_generate_test()
173 printf("generated patch: OK\n"); in test_generate_test()
177 printf("generated patch: FAILED\n"); in test_generate_test()
185 cJSON *tests = parse_test_file("json-patch-tests/tests.json"); in cjson_utils_should_pass_json_patch_test_tests()
202 cJSON *tests = parse_test_file("json-patch-tests/spec_tests.json"); in cjson_utils_should_pass_json_patch_test_spec_tests()
219 cJSON *tests = parse_test_file("json-patch-tests/cjson-utils-tests.json"); in cjson_utils_should_pass_json_patch_test_cjson_utils_tests()