| /third_party/json/tests/src/ |
| D | unit-json_patch.cpp | 6 // SPDX-FileCopyrightText: 2013-2023 Niels Lohmann <https://nlohmann.me> 7 // SPDX-License-Identifier: MIT 14 using namespace nlohmann::literals; // NOLINT(google-build-using-namespace) 27 json op1 = R"({ "op": "add", "path": "/a/b/c", "value": "foo" })"_json; 28 json op2 = R"({ "path": "/a/b/c", "op": "add", "value": "foo" })"_json; 29 json op3 = R"({ "value": "foo", "path": "/a/b/c", "op": "add" })"_json; 31 // check if the operation objects are equivalent 32 CHECK(op1 == op2); 33 CHECK(op1 == op3); 38 … json const patch1 = R"([{ "op": "add", "path": "/a/b", "value": [ "foo", "bar" ] }])"_json; [all …]
|
| /third_party/python/Lib/test/ |
| D | test_fnmatch.py | 23 check = self.check_match 24 check('abc', 'abc') 25 check('abc', '?*?') 26 check('abc', '???*') 27 check('abc', '*???') 28 check('abc', '???') 29 check('abc', '*') 30 check('abc', 'ab[cd]') 31 check('abc', 'ab[!de]') 32 check('abc', 'ab[de]', False) [all …]
|
| /third_party/jerryscript/tools/ |
| D | settings.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 17 from os import path 19 TOOLS_DIR = path.dirname(path.abspath(__file__)) 20 PROJECT_DIR = path.normpath(path.join(TOOLS_DIR, '..')) 21 DEBUGGER_TESTS_DIR = path.join(PROJECT_DIR, 'tests/debugger') 22 JERRY_TESTS_DIR = path.join(PROJECT_DIR, 'tests/jerry') 23 JERRY_TEST_SUITE_DIR = path.join(PROJECT_DIR, 'tests/jerry-test-suite') 24 JERRY_TEST_SUITE_MINIMAL_LIST = path.join(PROJECT_DIR, 'tests/jerry-test-suite/minimal-profile-list… 25 TEST262_TEST_SUITE_DIR = path.join(PROJECT_DIR, 'tests/test262') 27 BUILD_SCRIPT = path.join(TOOLS_DIR, 'build.py') [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/nameres/tests/ |
| D | mod_resolution.rs | 5 cov_mark::check!(name_res_works_for_broken_modules); in name_res_works_for_broken_modules() 6 check( in name_res_works_for_broken_modules() 8 //- /lib.rs in name_res_works_for_broken_modules() 12 //- /foo/mod.rs in name_res_works_for_broken_modules() 16 //- /foo/bar.rs in name_res_works_for_broken_modules() 31 check( in nested_module_resolution() 33 //- /lib.rs in nested_module_resolution() 36 //- /n1.rs in nested_module_resolution() 39 //- /n1/n2.rs in nested_module_resolution() 57 check( in nested_module_resolution_2() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/run_check/ |
| D | _check_version.py | 1 # Copyright 2020-2022 Huawei Technologies Co., Ltd 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """version and config check""" 24 from pathlib import Path 34 """basic class for environment check""" 38 """check dependency""" 50 """CPU environment check.""" 63 plugin_dir = os.path.dirname(self.library_path) 64 akg_dir = os.path.join(plugin_dir, "plugin/cpu") 72 """GPU environment check.""" [all …]
|
| /third_party/rust/rust/library/std/src/fs/ |
| D | tests.rs | 7 use crate::path::Path; 31 macro_rules! check { macro 76 pub fn got_symlink_permission(tmpdir: &TempDir) -> bool { in got_symlink_permission() 90 fn able_to_not_follow_symlinks_while_hard_linking() -> bool { in able_to_not_follow_symlinks_while_hard_linking() 91 weak!(fn linkat(c_int, *const c_char, c_int, *const c_char, c_int) -> c_int); in able_to_not_follow_symlinks_while_hard_linking() 96 fn able_to_not_follow_symlinks_while_hard_linking() -> bool { in able_to_not_follow_symlinks_while_hard_linking() 106 let mut write_stream = check!(File::create(filename)); in file_test_io_smoke_test() 107 check!(write_stream.write(message.as_bytes())); in file_test_io_smoke_test() 110 let mut read_stream = check!(File::open(filename)); in file_test_io_smoke_test() 112 let read_str = match check!(read_stream.read(&mut read_buf)) { in file_test_io_smoke_test() [all …]
|
| /third_party/libpng/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 18 --> 19 <!-- OAT(OSS Audit Tool) configuration guide: 20 basedir: Root dir, the basedir + project path is the real source file location. 22 …ot dir, please define all the license files in this project in , OAT will check license files acco… 25 1. task: Define oat check thread, each task will start a new thread. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 33 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/parser/src/tests/ |
| D | prefix_entries.rs | 5 check(PrefixEntryPoint::Vis, "pub(crate) fn foo() {}", "pub(crate)"); in vis() 6 check(PrefixEntryPoint::Vis, "fn foo() {}", ""); in vis() 7 check(PrefixEntryPoint::Vis, "pub(fn foo() {}", "pub"); in vis() 8 check(PrefixEntryPoint::Vis, "pub(crate fn foo() {}", "pub(crate"); in vis() 9 check(PrefixEntryPoint::Vis, "crate fn foo() {}", "crate"); in vis() 14 check(PrefixEntryPoint::Block, "{}, 92", "{}"); in block() 15 check(PrefixEntryPoint::Block, "{, 92)", "{, 92)"); in block() 16 check(PrefixEntryPoint::Block, "()", ""); in block() 21 check(PrefixEntryPoint::Stmt, "92; fn", "92"); in stmt() 22 check(PrefixEntryPoint::Stmt, "let _ = 92; 1", "let _ = 92"); in stmt() [all …]
|
| /third_party/rust/crates/minimal-lexical/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/python/Tools/c-analyzer/c_common/ |
| D | fsutil.py | 4 import os.path 30 raise # re-raise 40 _badprefix=f'..{os.path.sep}', 42 """Return a normalized, absolute-path copy of the given filename.""" 44 return os.path.abspath(filename) 46 relroot = os.path.abspath(relroot) 51 _badprefix=f'..{os.path.sep}', 56 filename = os.path.normpath(filename) 61 if not os.path.isabs(filename): 62 filename = os.path.join(relroot, filename) [all …]
|
| /third_party/lz4/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 18 --> 19 <!-- OAT(OSS Audit Tool) configuration guide: 20 basedir: Root dir, the basedir + project path is the real source file location. 22 …ot dir, please define all the license files in this project in , OAT will check license files acco… 25 1. task: Define oat check thread, each task will start a new thread. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 33 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/termcolor/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir, the basedir + project path is the real source file location. 21 …ot dir, please define all the license files in this project in , OAT will check license files acco… 24 1. task: Define oat check thread, each task will start a new thread. 28 5. task project: Projects to be checked, the path field define the source root dir of the project. 32 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/rust/src/tools/tidy/src/ |
| D | bins.rs | 1 //! Tidy check to ensure that there are no binaries checked into the source tree 10 // All files are executable on Windows, so just check on Unix. 13 use std::path::Path; 15 pub fn check_filesystem_support(_sources: &[&Path], _output: &Path) -> bool { in check_filesystem_support() argument 19 pub fn check(_path: &Path, _bad: &mut bool) {} in check() argument 27 use std::path::Path; 38 fn is_executable(path: &Path) -> std::io::Result<bool> { in is_executable() 39 Ok(path.metadata()?.mode() & 0o111 != 0) in is_executable() 42 pub fn check_filesystem_support(sources: &[&Path], output: &Path) -> bool { in check_filesystem_support() argument 50 // see the source directory mounted as read-only which means we can't in check_filesystem_support() [all …]
|
| /third_party/rust/crates/clap/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/bindgen/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/linux-raw-sys/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/io-lifetimes/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/memchr/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir, the basedir + project path is the real source file location. 21 …ot dir, please define all the license files in this project in , OAT will check license files acco… 24 1. task: Define oat check thread, each task will start a new thread. 28 5. task project: Projects to be checked, the path field define the source root dir of the project. 32 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/aho-corasick/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir, the basedir + project path is the real source file location. 21 …ot dir, please define all the license files in this project in , OAT will check license files acco… 24 1. task: Define oat check thread, each task will start a new thread. 28 5. task project: Projects to be checked, the path field define the source root dir of the project. 32 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/nix/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/cares/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 15 --> 16 <!-- OAT(OSS Audit Tool) configuration guide: 17 basedir: Root dir, the basedir + project path is the real source file location. 19 …ot dir, please define all the license files in this project in , OAT will check license files acco… 22 1. task: Define oat check thread, each task will start a new thread. 26 5. task project: Projects to be checked, the path field define the source root dir of the project. 30 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/spirv-headers/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 18 --> 19 <!-- OAT(OSS Audit Tool) configuration guide: 20 basedir: Root dir, the basedir + project path is the real source file location. 22 …ot dir, please define all the license files in this project in , OAT will check license files acco… 25 1. task: Define oat check thread, each task will start a new thread. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 33 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/cJSON/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 8 http://www.apache.org/licenses/LICENSE-2.0 18 --> 19 <!-- OAT(OSS Audit Tool) configuration guide: 20 basedir: Root dir, the basedir + project path is the real source file location. 22 …ot dir, please define all the license files in this project in , OAT will check license files acco… 25 1. task: Define oat check thread, each task will start a new thread. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 33 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/unicode-ident/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir|the basedir + project path is the real source file location. 21 …root dir|please define all the license files in this project in |OAT will check license files acco… 24 1. task: Define oat check thread|each task will start a new thread. 28 5. task project: Projects to be checked|the path field define the source root dir of the project. 32 …yitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. [all …]
|
| /third_party/rust/crates/either/ |
| D | OAT.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Copyright (c) 2021 Huawei Device Co., Ltd. 7 http://www.apache.org/licenses/LICENSE-2.0 17 --> 18 <!-- OAT(OSS Audit Tool) configuration guide: 19 basedir: Root dir, the basedir + project path is the real source file location. 21 …ot dir, please define all the license files in this project in , OAT will check license files acco… 24 1. task: Define oat check thread, each task will start a new thread. 28 5. task project: Projects to be checked, the path field define the source root dir of the project. 32 …items will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. [all …]
|