/third_party/json/test/src/ |
D | unit-json_patch.cpp | 56 json patch = R"([{ "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }])"_json; variable 66 CHECK_NOTHROW(doc1.patch(patch)); 77 CHECK(doc1.patch(patch) == doc1_ans); 83 CHECK_THROWS_AS(doc2.patch(patch), json::out_of_range&); 84 CHECK_THROWS_WITH(doc2.patch(patch), 93 json patch = {{{"op", "remove"}, {"path", "/1"}}}; variable 94 CHECK(doc.patch(patch) == json({1, 3, 4})); 105 json patch = R"( variable 120 CHECK(doc.patch(patch) == expected); 123 CHECK(doc.patch(json::diff(doc, expected)) == expected); [all …]
|
D | unit-merge_patch.cpp | 49 json patch = R"({ variable 63 document.merge_patch(patch); 82 json patch = R"({ variable 105 document.merge_patch(patch); 114 json patch = R"({"a":"c"})"_json; variable 117 original.merge_patch(patch); 124 json patch = R"({"b":"c"})"_json; variable 127 original.merge_patch(patch); 134 json patch = R"({"a":null})"_json; variable 137 original.merge_patch(patch); [all …]
|
/third_party/node/deps/brotli/c/include/brotli/ |
D | port.h | 28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument 29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch)) 31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument 50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument 52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) 55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) 58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \ argument [all …]
|
/third_party/skia/third_party/externals/brotli/c/include/brotli/ |
D | port.h | 28 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) \ argument 29 (BROTLI_GNUC_VERSION >= BROTLI_MAKE_VERSION(major, minor, patch)) 31 #define BROTLI_GNUC_VERSION_CHECK(major, minor, patch) (0) argument 50 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) (0) argument 52 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 53 (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) 55 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 56 (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) 58 #define BROTLI_MSVC_VERSION_CHECK(major, minor, patch) \ argument 73 #define BROTLI_INTEL_VERSION_CHECK(major, minor, patch) \ argument [all …]
|
/third_party/python/Lib/test/ |
D | test_getpass.py | 17 @mock.patch('os.environ') 39 with mock.patch('os.getuid') as uid, \ 40 mock.patch('pwd.getpwuid') as getpw: 62 with mock.patch('sys.stderr') as stderr: 66 @mock.patch('sys.stdin') 72 @mock.patch('sys.stdin') 98 with mock.patch('os.open') as open, \ 99 mock.patch('io.FileIO') as fileio, \ 100 mock.patch('io.TextIOWrapper') as textio: 112 with mock.patch('os.open') as open, \ [all …]
|
D | test_script_helper.py | 38 @mock.patch('subprocess.Popen') 40 with mock.patch.object(script_helper, 56 @mock.patch('subprocess.Popen') 59 with mock.patch.object(script_helper, 85 @mock.patch('subprocess.check_call') 87 with mock.patch.dict(os.environ): 94 @mock.patch('subprocess.check_call') 96 with mock.patch.dict(os.environ): 103 @mock.patch('subprocess.check_call') 105 with mock.patch.dict(os.environ): [all …]
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testpatch.py | 16 MagicMock, Mock, NonCallableMagicMock, patch, _patch, 101 @patch.object(Something, 'attribute', sentinel.Patched) 112 patch.object('Something', 'do_something') 118 @patch.object(Something, 'attribute', None) 132 @patch.object(Something, 'attribute', sentinel.Patched) 133 @patch.object(Something, 'next_attribute', sentinel.Patched2) 150 @patch('%s.something' % __name__, sentinel.Something2) 163 @patch('%s.something' % __name__, sentinel.Something2) 172 @patch('%s.something' % __name__, sentinel.Something2) 173 @patch('%s.something_else' % __name__, sentinel.SomethingElse) [all …]
|
D | testwith.py | 5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call 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 … 61 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 90 with patch('%s.something' % __name__, sentinel.Patched) as mock_something: 93 with patch('%s.something' % __name__) as mock_again: 103 with patch('%s.something' % __name__) as mock_something: [all …]
|
/third_party/json/include/nlohmann/thirdparty/hedley/ |
D | hedley.hpp | 82 …LEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(… argument 84 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0) argument 102 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0) argument 104 …N_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 10… argument 106 …ON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10… argument 108 … #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor))) argument 124 …EY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE… argument 126 #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0) argument 140 …EDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(… argument 142 #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0) argument [all …]
|
/third_party/mesa3d/src/vulkan/util/ |
D | vk_extensions.py | 42 self.patch = int(split[2]) 44 self.patch = None 49 assert self.patch is None or self.patch < 4096 54 if self.patch is not None: 55 ver_list.append(str(self.patch)) 59 patch = self.patch if self.patch is not None else 0 60 ver_list = [str(self.major), str(self.minor), str(patch)] 65 patch = self.patch if self.patch is not None else 0 66 return (self.major << 22) | (self.minor << 12) | patch 71 if (self.patch is None) != (other.patch is None): [all …]
|
D | vk_util.c | 40 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()
|
/third_party/flutter/skia/site/dev/contrib/ |
D | patch.md | 5 externally-submitted patch, this is how to do it. (This technique is useful in 6 other situations too, like if you just want to try out somebody else's patch 12 to patch into your local checkout: https://codereview.appspot.com/6201055/ 14 because there is no standard Windows "patch" tool. 17 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe… 22 git cl patch 6201055 27 1. Prepare your local workspace to accept the patch. 30 want to apply the patch. 32 clean enough" for your purposes). If the codereview patch was against 36 2. Download the raw patch set. [all …]
|
/third_party/skia/site/docs/dev/contrib/ |
D | patch.md | 7 externally-submitted patch, this is how to do it. (This technique is useful in 8 other situations too, like if you just want to try out somebody else's patch 14 patch into your local checkout: https://codereview.appspot.com/6201055/ 16 there is no standard Windows "patch" tool. 19 …velopers/contributing-code#TOC-Instructions-for-Reviewer:-Checking-in-the-patch-for-a-non-committe… 24 git cl patch 6201055 29 1. Prepare your local workspace to accept the patch. 32 want to apply the patch. 34 enough" for your purposes). If the codereview patch was against an old 38 2. Download the raw patch set. [all …]
|
/third_party/chromium/patch/ |
D | README.md | 1 # chromium patch information 4 主要介绍各个patch的相关信息 8 | 0001-cve.patch | 针对Chromium CVE漏洞的修复 | 9 | 0002-cef.patch | CEF代码 | 10 | 0003-3.2-Beta3-1115.patch | OpenHarmony特性代码 | 11 | 0004-3.2-Beta5.patch | OpenHarmony 3.2 Beta5 特性代码 | 12 | 0005-3.2-Release.patch | OpenHarmony 3.2 Release 特性代码 | 19 git apply --whitespace=nowarn --ignore-whitespace -p2 ../patch/*.patch
|
/third_party/typescript/src/compiler/ |
D | semver.ts | 37 readonly patch: number; property in ts.Version 42 … constructor(major: number, minor?: number, patch?: number, prerelease?: string, build?: string); 43 constructor(major: number | string, minor = 0, patch = 0, prerelease = "", build = "") { 46 ({ major, minor, patch, prerelease, build } = result); 51 Debug.assert(patch >= 0, "Invalid argument: patch"); 56 this.patch = patch; 65 const { major, minor, patch, prerelease, build } = result; constant 66 return new Version(major, minor, patch, prerelease, build); 86 || compareValues(this.patch, other.patch) 94 case "patch": return new Version(this.major, this.minor, this.patch + 1); [all …]
|
/third_party/vk-gl-cts/build/include/glslang/ |
D | build_info.h | 42 #define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \ argument 45 ((patch) > GLSLANG_VERSION_PATCH))))) 47 #define GLSLANG_VERSION_GREATER_OR_EQUAL_TO(major, minor, patch) \ argument 50 ((patch) >= GLSLANG_VERSION_PATCH))))) 52 #define GLSLANG_VERSION_LESS_THAN(major, minor, patch) \ argument 55 ((patch) < GLSLANG_VERSION_PATCH))))) 57 #define GLSLANG_VERSION_LESS_OR_EQUAL_TO(major, minor, patch) \ argument 60 ((patch) <= GLSLANG_VERSION_PATCH)))))
|
/third_party/flutter/flutter/packages/flutter_tools/lib/src/base/ |
D | version.dart | 7 factory Version(int major, int minor, int patch, {String text}) { 12 if (patch != null) 13 text = '$text.$patch'; 16 return Version._(major ?? 0, minor ?? 0, patch ?? 0, text); 19 Version._(this.major, this.minor, this.patch, this._text) { 24 if (patch < 0) 38 final int patch = int.parse(match[5] ?? '0'); 39 return Version._(major, minor, patch, text); 67 /// The patch version number: "3" in "1.2.3". 68 final int patch; [all …]
|
/third_party/skia/third_party/externals/zlib/patches/ |
D | README | 3 - 0000-build.patch: changes from the upstream version, mostly related to the 5 - 0001-simd.patch: integrate Intel SIMD optimizations from 7 - 0002-uninitializedcheck.patch: prevent uninitialized use of state->check 9 == Procedure to create a patch file == 12 - git format-patch master --stdout > foo.patch # where naming follows a growing 13 # number plus patch description. 14 - git add foo.patch 15 - git commit -a -m "Local patch." 19 the need to append this file with a description of what the patch does. This 29 intention is not immediately clear, generate a .patch file to go with your [all …]
|
/third_party/node/deps/zlib/patches/ |
D | README | 3 - 0000-build.patch: changes from the upstream version, mostly related to the 5 - 0001-simd.patch: integrate Intel SIMD optimizations from 7 - 0002-uninitializedcheck.patch: prevent uninitialized use of state->check 9 == Procedure to create a patch file == 12 - git format-patch master --stdout > foo.patch # where naming follows a growing 13 # number plus patch description. 14 - git add foo.patch 15 - git commit -a -m "Local patch." 19 the need to append this file with a description of what the patch does. This 29 intention is not immediately clear, generate a .patch file to go with your [all …]
|
/third_party/boost/boost/predef/other/ |
D | workaround.h | 38 # define BOOST_PREDEF_WORKAROUND(symbol, comp, major, minor, patch) (0) argument 41 # define BOOST_PREDEF_WORKAROUND(symbol, comp, major, minor, patch) \ argument 43 ( (symbol) comp (BOOST_VERSION_NUMBER( (major) , (minor) , (patch) )) ) 82 # define BOOST_PREDEF_TESTED_AT(symbol, major, minor, patch) (0) argument 85 # define BOOST_PREDEF_TESTED_AT(symbol, major, minor, patch) ( \ argument 86 BOOST_PREDEF_WORKAROUND(symbol, <=, major, minor, patch) \ 90 # define BOOST_PREDEF_TESTED_AT(symbol, major, minor, patch) \ argument
|
/third_party/glslang/Test/ |
D | spv.450.tesc | 5 layout(location=1) patch out vec4 patchOut; 8 float sMem1; // should not see a patch decoration 9 float sMem2; // should not see a patch decoration 12 layout(location = 12) patch out TheBlock { 15 S s; // should see a patch decoration 23 layout(location = 2) patch out SingleBlock { 26 S s; // should see a patch decoration 29 layout(location = 20) patch out bn {
|
/third_party/flutter/skia/third_party/externals/sdl/premake/patches/ |
D | premake.patches.txt | 4 1. 709.patch: this patch corrects the linking order for generated GNU makefiles. 5 More information on this patch can be found at: 7 2. iOS.patch: this patch adds a iOS as a platform option for premake, allowing 9 3. 711.patch: this patch adds support for Xcode recognizing files added to 15 4. 712.patch: this patch fixes an issue in Xcode that prevents post-build 20 5. 713.patch: this patch allows custom source trees to be set in Xcode links
|
/third_party/cJSON/tests/ |
D | json_patch_tests.c | 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() 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() 164 …TEST_ASSERT_EQUAL_INT_MESSAGE(0, cJSONUtils_ApplyPatchesCaseSensitive(object, patch), "Failed to a… in test_generate_test() [all …]
|
/third_party/flutter/skia/third_party/externals/zlib/patches/ |
D | README | 3 - 0000-build.patch: changes from the upstream version, mostly related to the 5 - 0001-simd.patch: integrate Intel SIMD optimizations from 8 == Procedure to create a patch file == 11 - git format-patch master --stdout > foo.patch # where naming follows a growing 12 # number plus patch description. 13 - git add foo.patch 14 - git commit -a -m "Local patch." 18 the need to append this file with a description of what the patch does. This 28 intention is not immediately clear, generate a .patch file to go with your 37 then the intent is clear and a .patch file doesn't need to be generated (since
|
/third_party/mesa3d/bin/ |
D | post_version_test.py | 28 @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)):
|