Home
last modified time | relevance | path

Searched +full:check +full:- +full:path (Results 1 – 25 of 1080) sorted by relevance

12345678910>>...44

/third_party/json/tests/src/
Dunit-json_patch.cpp6 // 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/
Dtest_fnmatch.py23 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/
Dsettings.py9 # 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/
Dmod_resolution.rs5 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.py1 # 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/
Dtests.rs7 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/
DOAT.xml1 <?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/
Dprefix_entries.rs5 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/
DOAT.xml1 <?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/
Dfsutil.py4 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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
Dbins.rs1 //! 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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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/
DOAT.xml1 <?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 …]

12345678910>>...44