Home
last modified time | relevance | path

Searched refs:patch (Results 1 - 25 of 390) sorted by relevance

12345678910>>...16

/third_party/json/tests/src/
H A Dunit-json_patch.cpp20 TEST_CASE("JSON patch")
48 CHECK_NOTHROW(doc1.patch(patch1));
57 CHECK(doc1.patch(patch1) == doc1_ans);
63 CHECK_THROWS_WITH_AS(doc2.patch(patch1), "[json.exception.out_of_range.403] key 'a' not found", json::out_of_range&);
70 CHECK_THROWS_WITH_AS(doc3.patch(patch2), "[json.exception.out_of_range.403] (/a) key 'b' not found", json::out_of_range&);
72 CHECK_THROWS_WITH_AS(doc3.patch(patch2), "[json.exception.out_of_range.403] key 'b' not found", json::out_of_range&);
81 json patch = {{{"op", "remove"}, {"path", "/1"}}}; variable
82 CHECK(doc.patch(patch) == json({1, 3, 4}));
93 json patch variable
122 json patch = R"( global() variable
151 json patch = R"( global() variable
177 json patch = R"( global() variable
206 json patch = R"( global() variable
242 json patch = R"( global() variable
276 json patch = R"( global() variable
305 json patch = R"( global() variable
326 json patch = R"( global() variable
349 json patch = R"( global() variable
381 json patch = R"( global() variable
409 json patch = R"( global() variable
438 json patch = R"( global() variable
469 json patch = R"( global() variable
492 json patch = R"( global() variable
525 json patch = R"( global() variable
551 json patch = R"( global() variable
584 json patch = R"( global() variable
614 json patch = {{{"op", "replace"}, {"path", ""}, {"value", 1}}}; global() variable
669 json patch = {{"op", "add"}, {"path", ""}, {"value", 1}}; global() variable
676 json patch = {"op", "add", "path", "", "value", 1}; global() variable
687 json patch = {{{"foo", "bar"}}}; global() variable
698 json patch = {{{"op", 1}}}; global() variable
709 json patch = {{{"op", "foo"}, {"path", ""}}}; global() variable
723 json patch = {{{"op", "add"}}}; global() variable
734 json patch = {{{"op", "add"}, {"path", 1}}}; global() variable
745 json patch = {{{"op", "add"}, {"path", ""}}}; global() variable
756 json patch = {{{"op", "add"}, {"path", "/4"}, {"value", 4}}}; global() variable
766 json patch = {{{"op", "remove"}}}; global() variable
777 json patch = {{{"op", "remove"}, {"path", 1}}}; global() variable
788 json patch = {{{"op", "remove"}, {"path", "/17"}}}; global() variable
795 json patch = {{{"op", "remove"}, {"path", "/baz"}}}; global() variable
802 json patch = {{{"op", "remove"}, {"path", ""}}}; global() variable
812 json patch = {{{"op", "replace"}}}; global() variable
823 json patch = {{{"op", "replace"}, {"path", 1}}}; global() variable
834 json patch = {{{"op", "replace"}, {"path", ""}}}; global() variable
845 json patch = {{{"op", "replace"}, {"path", "/17"}, {"value", 19}}}; global() variable
852 json patch = {{{"op", "replace"}, {"path", "/baz"}, {"value", 3}}}; global() variable
862 json patch = {{{"op", "move"}}}; global() variable
873 json patch = {{{"op", "move"}, {"path", 1}}}; global() variable
884 json patch = {{{"op", "move"}, {"path", ""}}}; global() variable
896 json patch = {{{"op", "move"}, {"path", ""}, {"from", 1}}}; global() variable
908 json patch = {{{"op", "move"}, {"path", "/0"}, {"from", "/5"}}}; global() variable
915 json patch = {{{"op", "move"}, {"path", "/baz"}, {"from", "/baz"}}}; global() variable
925 json patch = {{{"op", "copy"}}}; global() variable
936 json patch = {{{"op", "copy"}, {"path", 1}}}; global() variable
947 json patch = {{{"op", "copy"}, {"path", ""}}}; global() variable
958 json patch = {{{"op", "copy"}, {"path", ""}, {"from", 1}}}; global() variable
969 json patch = {{{"op", "copy"}, {"path", "/0"}, {"from", "/5"}}}; global() variable
976 json patch = {{{"op", "copy"}, {"path", "/fob"}, {"from", "/baz"}}}; global() variable
986 json patch = {{{"op", "test"}}}; global() variable
997 json patch = {{{"op", "test"}, {"path", 1}}}; global() variable
1008 json patch = {{{"op", "test"}, {"path", ""}}}; global() variable
1031 json patch = R"( global() variable
1069 json patch = R"( global() variable
1096 json patch = R"( global() variable
1117 json patch = R"( global() variable
1143 json patch = R"( global() variable
1172 json patch = R"( global() variable
1198 json patch = R"( global() variable
1306 const auto& patch = test["patch"]; global() variable
[all...]
H A Dunit-merge_patch.cpp31 json patch = R"({ variable
45 document.merge_patch(patch);
64 json patch = R"({ variable
87 document.merge_patch(patch);
96 json patch = R"({"a":"c"})"_json; variable
99 original.merge_patch(patch);
106 json patch = R"({"b":"c"})"_json; variable
109 original.merge_patch(patch);
116 json patch = R"({"a":null})"_json; variable
119 original.merge_patch(patch);
126 json patch = R"({"a":null})"_json; global() variable
136 json patch = R"({"a":"c"})"_json; global() variable
146 json patch = R"({"a":["b"]})"_json; global() variable
156 json patch = R"({"a":{"b":"d","c":null}})"_json; global() variable
166 json patch = R"({"a":[1]})"_json; global() variable
176 json patch = R"(["c","d"])"_json; global() variable
186 json patch = R"(["c"])"_json; global() variable
196 json patch = R"(null)"_json; global() variable
206 json patch = R"("bar")"_json; global() variable
216 json patch = R"({"a":1})"_json; global() variable
226 json patch = R"({"a":"b","c":null})"_json; global() variable
236 json patch = R"({"a":{"bb":{"ccc":null}}})"_json; global() variable
[all...]
/third_party/node/deps/brotli/c/include/brotli/
H A Dport.h28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \
29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0)
50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0)
52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \
[all...]
/third_party/skia/third_party/externals/brotli/c/include/brotli/
H A Dport.h28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \
29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch))
31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0)
50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0)
52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \
73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \
[all...]
/third_party/openssl/test/testutil/
H A Dprovider.c69 int major, minor, patch; member
89 || sscanf(vs, "%d.%d.%d", &vers->major, &vers->minor, &vers->patch) != 3) in fips_provider_version()
99 int fips_provider_version_eq(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_eq() argument
106 return major == prov.major && minor == prov.minor && patch == prov.patch; in fips_provider_version_eq()
109 int fips_provider_version_ne(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_ne() argument
116 return major != prov.major || minor != prov.minor || patch != prov.patch; in fips_provider_version_ne()
119 int fips_provider_version_le(OSSL_LIB_CTX *libctx, int major, int minor, int patch) in fips_provider_version_le() argument
129 || (prov.minor == minor && prov.patch < in fips_provider_version_le()
132 fips_provider_version_lt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) fips_provider_version_lt() argument
145 fips_provider_version_gt(OSSL_LIB_CTX *libctx, int major, int minor, int patch) fips_provider_version_gt() argument
158 fips_provider_version_ge(OSSL_LIB_CTX *libctx, int major, int minor, int patch) fips_provider_version_ge() argument
174 int major, minor, patch, r; fips_provider_version_match() local
[all...]
/third_party/python/Lib/test/
H A Dtest_getpass.py17 @mock.patch('os.environ')
42 with mock.patch('os.getuid') as uid, \
43 mock.patch('pwd.getpwuid') as getpw:
65 with mock.patch('sys.stderr') as stderr:
69 @mock.patch('sys.stdin')
75 @mock.patch('sys.stdin')
101 with mock.patch('os.open') as open, \
102 mock.patch('io.FileIO') as fileio, \
103 mock.patch('io.TextIOWrapper') as textio:
115 with mock.patch('o
[all...]
H A Dtest_script_helper.py38 @mock.patch('subprocess.Popen')
40 with mock.patch.object(script_helper,
56 @mock.patch('subprocess.Popen')
59 with mock.patch.object(script_helper,
86 @mock.patch('subprocess.check_call')
88 with mock.patch.dict(os.environ):
95 @mock.patch('subprocess.check_call')
97 with mock.patch.dict(os.environ):
104 @mock.patch('subprocess.check_call')
106 with mock.patch
[all...]
/third_party/python/Lib/unittest/test/testmock/
H A Dtestpatch.py16 MagicMock, Mock, NonCallableMagicMock, patch, _patch,
101 @patch.object(Something, 'attribute', sentinel.Patched)
107 "patch not restored")
112 patch.object('Something', 'do_something')
118 @patch.object(Something, 'attribute', None)
124 "patch not restored")
132 @patch.object(Something, 'attribute', sentinel.Patched)
133 @patch.object(Something, 'next_attribute', sentinel.Patched2)
142 "patch not restored")
144 "patch no
[all...]
H A Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call namespace
19 with patch('%s.something' % __name__, sentinel.Something2):
26 with patch('%s.something' % __name__, sentinel.Something2):
33 with patch('%s.something' % __name__) as mock_something:
44 with patch.object(Foo, 'something'):
51 with patch('%s.something' % __name__) as mock_something, patch('%s.something_else' % __name__) as mock_something_else:
61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something:
63 self.assertEqual(mock_something, sentinel.Patched, "wrong patch")
90 with patch('
[all...]
/third_party/json/include/nlohmann/thirdparty/hedley/
H A Dhedley.hpp85 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch))
87 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0)
105 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)
107 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch)))
109 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch)))
111 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor)))
127 #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSIO
[all...]
/third_party/vk-gl-cts/build/include/glslang/
H A Dbuild_info.h42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \
45 (GLSLANG_VERSION_PATCH) > (patch)))))
47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \
50 (GLSLANG_VERSION_PATCH >= (patch))))))
52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \
55 (GLSLANG_VERSION_PATCH) < (patch)))))
57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \
60 (GLSLANG_VERSION_PATCH <= (patch))))))
/third_party/mesa3d/src/vulkan/util/
H A Dvk_util.c40 int patch = patch_string ? atoi(patch_string + 1) : 0; in vk_get_driver_version() local
42 if (patch == 0) { in vk_get_driver_version()
43 patch = 99; in vk_get_driver_version()
50 --patch; in vk_get_driver_version()
52 return VK_MAKE_VERSION(major, minor, patch); in vk_get_driver_version()
66 int patch = patch_str ? atoi(patch_str + 1) : 0; in vk_get_version_override() local
69 if (major < 1 || minor < 0 || patch < 0 || minor > 1023 || patch > 4095) in vk_get_version_override()
72 return VK_MAKE_VERSION(major, minor, patch); in vk_get_version_override()
H A Dvk_extensions.py41 self.patch = int(split[2])
43 self.patch = None
48 assert self.patch is None or self.patch < 4096
53 if self.patch is not None:
54 ver_list.append(str(self.patch))
58 ver_list = [str(self.major), str(self.minor), str(self.patch or 0)]
63 return (self.major << 22) | (self.minor << 12) | (self.patch or 0)
66 # If only one of them has a patch version, "ignore" it by making
67 # other's patch versio
[all...]
/third_party/mbedtls/tests/scripts/
H A Dtest_generate_test_code.py13 from unittest.mock import patch namespace
585 @patch("generate_test_code.parse_function_arguments")
604 @patch("generate_test_code.gen_dispatch")
605 @patch("generate_test_code.gen_dependencies")
606 @patch("generate_test_code.gen_function_wrapper")
607 @patch("generate_test_code.parse_function_arguments")
649 @patch("generate_test_code.gen_dispatch")
650 @patch("generate_test_code.gen_dependencies")
651 @patch("generate_test_code.gen_function_wrapper")
652 @patch("generate_test_cod
[all...]
/third_party/mesa3d/bin/
H A Dpost_version_test.py28 @mock.patch('bin.post_version.subprocess.run', mock.Mock())
34 with mock.patch('bin.post_version.subprocess.run', mock.Mock()), \
35 mock.patch('bin.post_version.pathlib', mock.MagicMock()):
45 with mock.patch('bin.post_version.csv.reader', mock.Mock(return_value=data.copy())), \
46 mock.patch('bin.post_version.csv.writer', mock.Mock(return_value=m)):
60 with mock.patch('bin.post_version.csv.reader', mock.Mock(return_value=data.copy())), \
61 mock.patch('bin.post_version.csv.writer', mock.Mock(return_value=m)):
/third_party/cJSON/tests/
H A Djson_patch_tests.c52 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 fail as it's supposed to."); 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 apply patches."); in test_apply_patch()
125 cJSON *patch = NULL; in test_generate_test() local
156 patch in test_generate_test()
[all...]
H A Dold_utils_tests.c179 cJSON *patch = cJSON_Parse(merges[i][1]); in merge_tests() local
180 patchtext = cJSON_PrintUnformatted(patch); in merge_tests()
181 object_to_be_merged = cJSONUtils_MergePatch(object_to_be_merged, patch); in merge_tests()
188 cJSON_Delete(patch); in merge_tests()
202 cJSON *patch = cJSONUtils_GenerateMergePatch(from,to); in generate_merge_tests() local
203 from = cJSONUtils_MergePatch(from,patch); in generate_merge_tests()
209 cJSON_Delete(patch); in generate_merge_tests()
/third_party/cJSON/
H A DcJSON_Utils.c759 static enum patch_operation decode_patch_operation(const cJSON * const patch, const cJSON_bool case_sensitive) in decode_patch_operation() argument
761 cJSON *operation = get_object_item(patch, "op", case_sensitive); in decode_patch_operation()
824 static int apply_patch(cJSON *object, const cJSON *patch, const cJSON_bool case_sensitive) in apply_patch() argument
834 path = get_object_item(patch, "path", case_sensitive); in apply_patch()
837 /* malformed patch. */ in apply_patch()
842 opcode = decode_patch_operation(patch, case_sensitive); in apply_patch()
851 status = !compare_json(get_item_from_pointer(object, path->valuestring, case_sensitive), get_object_item(patch, "value", case_sensitive), case_sensitive); in apply_patch()
870 value = get_object_item(patch, "value", case_sensitive); in apply_patch()
925 cJSON *from = get_object_item(patch, "from", case_sensitive); in apply_patch()
960 value = get_object_item(patch, "valu in apply_patch()
1115 cJSON *patch = NULL; compose_patch() local
1338 merge_patch(cJSON *target, const cJSON * const patch, const cJSON_bool case_sensitive) merge_patch() argument
1398 cJSONUtils_MergePatch(cJSON *target, const cJSON * const patch) cJSONUtils_MergePatch() argument
1403 cJSONUtils_MergePatchCaseSensitive(cJSON *target, const cJSON * const patch) cJSONUtils_MergePatchCaseSensitive() argument
1412 cJSON *patch = NULL; generate_merge_patch() local
[all...]
/third_party/mesa3d/bin/pick/
H A Dcore_test.py274 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
275 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_true):
286 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
287 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_false):
298 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
309 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
320 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
331 with mock.patch('bin.pick.core.asyncio.create_subprocess_exec', s.mock):
332 with mock.patch('bin.pick.core.is_commit_in_branch', self.return_true):
343 with mock.patch('bi
[all...]
/third_party/rust/crates/autocfg/src/
H A Dversion.rs12 patch: usize,
16 /// Creates a `Version` instance for a specific `major.minor.patch` version.
17 pub fn new(major: usize, minor: usize, patch: usize) -> Self { in new()
21 patch: patch, in new()
52 let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); in from_rustc()
57 try!(patch.parse().map_err(error::from_num)), in from_rustc()
/third_party/skia/third_party/externals/freetype/builds/meson/
H A Dextract_freetype_version.py16 `--minor` or `--patch` can be used to only print one of these values
43 patch = None
61 assert patch == None, "FREETYPE_PATCH appears more than once!"
62 patch = m.group(1)
66 major and minor and patch
69 return (major, minor, patch)
87 "--patch",
89 help="Only print the patch version number.",
108 elif args.patch:
H A Dextract_libtool_version.py16 `--major`, `--minor` or `--patch` can be used to only print one of these
39 patch = None
48 patch = m.group(3)
52 major and minor and patch
55 return (major, minor, patch)
73 "--patch",
75 help="Only print the patch version number.",
99 elif args.patch:
/third_party/python/Lib/distutils/tests/
H A Dtest_spawn.py83 with unittest.mock.patch('distutils.spawn.os.confstr',
85 unittest.mock.patch('distutils.spawn.os.defpath',
98 with unittest.mock.patch('distutils.spawn.os.confstr',
100 unittest.mock.patch('distutils.spawn.os.defpath', ''):
114 with unittest.mock.patch('distutils.spawn.os.confstr',
117 unittest.mock.patch('distutils.spawn.os.defpath',
123 with unittest.mock.patch('distutils.spawn.os.confstr',
125 unittest.mock.patch('distutils.spawn.os.defpath', ''):
/third_party/python/Lib/test/test_asyncio/
H A Dtest_unix_events.py81 @mock.patch('asyncio.unix_events.signal')
92 @mock.patch('asyncio.unix_events.signal')
109 @mock.patch('asyncio.unix_events.signal')
120 @mock.patch('asyncio.unix_events.signal')
139 @mock.patch('asyncio.unix_events.signal')
140 @mock.patch('asyncio.base_events.logger')
157 @mock.patch('asyncio.unix_events.signal')
158 @mock.patch('asyncio.base_events.logger')
173 @mock.patch('asyncio.unix_events.signal')
187 @mock.patch('asynci
1184 def patch(target, wrapper): global() function
[all...]
/third_party/mesa3d/src/compiler/glsl/
H A Dlink_varyings.cpp51 if (!var->data.patch && in get_varying_type()
176 if (input->data.patch != output->data.patch) { in cross_validate_types_and_qualifiers()
178 "%s shader output `%s' %s patch qualifier, " in cross_validate_types_and_qualifiers()
179 "but %s shader input %s patch qualifier\n", in cross_validate_types_and_qualifiers()
182 (output->data.patch) ? "has" : "lacks", in cross_validate_types_and_qualifiers()
184 (input->data.patch) ? "has" : "lacks"); in cross_validate_types_and_qualifiers()
304 if (var->data.patch) in compute_variable_location_slot()
325 bool patch; member
338 bool patch, in check_location_aliasing()
329 check_location_aliasing(struct explicit_location_info explicit_locations[][4], ir_variable *var, unsigned location, unsigned component, unsigned location_limit, const glsl_type *type, unsigned interpolation, bool centroid, bool sample, bool patch, gl_shader_program *prog, gl_shader_stage stage) check_location_aliasing() argument
[all...]

Completed in 14 milliseconds

12345678910>>...16