/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_filesystem_unittest_test.py | 2 # Copyright 2015-2017 John McGehee 9 # http://www.apache.org/licenses/LICENSE-2.0 31 from pathlib import Path 100 self.assertFalse(os.path.exists("/fake_file.txt")) 103 self.assertTrue(self.fs.exists("/fake_file.txt")) 113 self.assertFalse(os.path.exists("/fake_file.txt")) 116 self.assertTrue(self.fs.exists("/fake_file.txt")) 126 self.assertFalse(self.fs.exists("/test/dir1/dir2")) 128 self.assertTrue(self.fs.exists("/test/dir1/dir2")) 151 self.assertTrue(self.fs.exists("/test/dir1/dir2b")) [all …]
|
D | fake_os_test.py | 8 # http://www.apache.org/licenses/LICENSE-2.0 43 def createTestFile(self, path): argument 44 self.create_file(path) 45 self.assertTrue(self.os.path.exists(path)) 46 st = self.os.stat(path) 51 def createTestDirectory(self, path): argument 52 self.create_dir(path) 53 self.assertTrue(self.os.path.exists(path)) 54 st = self.os.stat(path) 87 full_dirname = self.os.path.join(dir1, dir2) [all …]
|
D | fake_filesystem_test.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 70 self.assertEqual(f"{root_dir}somedir/foobar", self.fake_file.path) 71 self.assertEqual(f"{root_dir}somedir", self.fake_dir.path) 78 self.assertEqual(dir_path, dir_object.path) 86 self.assertEqual(f"{root_dir}foo/bar/baz", dir_object.path) 94 self.assertEqual(dir_path, dir_object.path) 109 self.fake_file.size = -1 208 self.fake_file.set_large_file_size(-1) 228 path = "bar" 230 self.assertEqual("/foo/bar", self.filesystem.absnormpath(path)) [all …]
|
D | fake_filesystem_shutil_test.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 25 from pathlib import Path 68 dir1_path = self.os.path.join(root_path, "dir1") 69 dir2_path = self.os.path.join(root_path, "dir2") 73 old_file_path = self.os.path.join(dir2_path, "f1.txt") 74 new_file_path = self.os.path.join(dir1_path, "f1.txt") 82 dir_path = os.path.join(directory, "subdir") 84 file_path = os.path.join(directory, "subfile") 86 self.assertTrue(os.path.exists(directory)) 88 self.assertFalse(os.path.exists(directory)) [all …]
|
D | fake_pathlib_test.py | 6 # http://www.apache.org/licenses/LICENSE-2.0 56 self.path = pathlib.Path 67 path = self.path("/test") 69 self.assertTrue(isinstance(path, self.pathlib.WindowsPath)) 70 self.assertTrue(isinstance(path, self.pathlib.PureWindowsPath)) 79 self.assertTrue(isinstance(path, self.pathlib.PosixPath)) 80 self.assertTrue(isinstance(path, self.pathlib.PurePosixPath)) 89 """Basic initialization tests - taken from 90 pathlib.Path documentation. 92 self.assertEqual(self.path("/", "foo", "bar", "baz"), self.path("/foo/bar/baz")) [all …]
|
/aosp_15_r20/external/fhir/spec/r4/json_definitions/ |
D | extension-definitions.json | 5 "lastUpdated" : "2019-11-01T09:29:23.356+11:00" 9 "fullUrl" : "http://hl7.org/fhir/StructureDefinition/valueset-expression", 12 "id" : "valueset-expression", 14 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", 18 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", 21 "url" : "http://hl7.org/fhir/StructureDefinition/valueset-expression", 25 "date" : "2019-11-01T09:29:23+11:00", 34 "kind" : "complex-type", 46 "path" : "Extension", string 49 …ted to be a computable format (use the [rules-text extension](extension-valueset-rules-text.html) … [all …]
|
D | profiles-others.json | 3 "id" : "profiles-others", 5 "lastUpdated" : "2019-11-01T09:29:23.356+11:00" 18 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", 22 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", 26 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", 27 "valueCode" : "trial-use" 34 "date" : "2019-11-01T09:29:23+11:00", 55 "uri" : "http://hl7.org/fhir/object-implementation", 66 "path" : "Measure", string 72 "path" : "Measure", string [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/filesystem/test/ |
D | operations_test.cpp | 1 // Boost operations_test.cpp ---------------------------------------------------------// 69 inline void setenv_(const char* name, const fs::path::value_type* val, int) in setenv_() 102 // file stream I/O, use path::string() to get a narrow character c_str() 121 fs::path dir; 122 fs::path d1; 123 fs::path d2; 124 fs::path f0; 125 fs::path f1; 126 fs::path d1f1; 130 fs::path ng(" no-way, Jose"); [all …]
|
/aosp_15_r20/build/make/tools/releasetools/ |
H A D | add_img_to_target_files.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 18 Given a target-files zipfile that does not contain images (ie, does 19 not have an IMAGES/ top-level subdirectory), produce the images and 24 -a (--add_missing) 27 directory exists in the target file. 29 -r (--rebuild_recovery) 34 --replace_verity_private_key 38 --replace_verity_public_key 42 --is_signing 46 --avb-resolve-rollback-index-location-conflict [all …]
|
/aosp_15_r20/frameworks/native/cmds/installd/tests/ |
H A D | installd_service_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 #include <android-base/file.h> 29 #include <android-base/logging.h> 30 #include <android-base/properties.h> 31 #include <android-base/scopeguard.h> 32 #include <android-base/stringprintf.h> 60 sp<IBinder> binder = sm->getService(String16("package_native")); in get_package_name() 71 binder::Status status = package_mgr->getNamesForUids({(int)uid}, &names); in get_package_name() 105 bool calculate_oat_file_path(char path[PKG_PATH_MAX], const char *oat_dir, const char *apk_path, in calculate_oat_file_path() 107 return calculate_oat_file_path_default(path, oat_dir, apk_path, instruction_set); in calculate_oat_file_path() [all …]
|
/aosp_15_r20/external/armnn/src/backends/backendsCommon/test/ |
H A D | DynamicBackendTests.hpp | 2 // Copyright © 2019-2023 Arm Ltd and Contributors. All rights reserved. 3 // SPDX-License-Identifier: MIT 28 #define DYNAMIC_BACKEND_BUILD_DIR fs::path("./") 31 static std::string g_TestDirCLI = "--dynamic-backend-build-dir"; 82 static std::vector<std::string> GetBackendPathsImplTest(const std::string& path) in GetBackendPathsImplTest() argument 84 return GetBackendPathsImpl(path); in GetBackendPathsImplTest() 118 fs::path executablePath(buffer); in GetUnitTestExecutablePath() 126 if (readlink("/proc/self/exe", buffer, PATH_MAX) != -1) in GetUnitTestExecutablePath() 128 fs::path executablePath(buffer); in GetUnitTestExecutablePath() 140 path programLocation = GetUnitTestExecutablePath(); in GetBasePath() [all …]
|
/aosp_15_r20/external/guava/guava-tests/test/com/google/common/io/ |
H A D | MoreFilesTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 import java.nio.file.Path; 65 "MoreFiles.asByteSource[Path]", SourceSinkFactories.pathByteSourceFactory(), true)); in suite() 68 "MoreFiles.asByteSink[Path]", SourceSinkFactories.pathByteSinkFactory())); in suite() 71 "MoreFiles.asByteSink[Path, APPEND]", in suite() 75 "MoreFiles.asCharSource[Path, Charset]", in suite() 80 "MoreFiles.asCharSink[Path, Charset]", SourceSinkFactories.pathCharSinkFactory())); in suite() 83 "MoreFiles.asCharSink[Path, Charset, APPEND]", in suite() 91 private static Path root() { in root() 95 private Path tempDir; [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/tempfile/tests/ |
D | namedtempfile.rs | 6 use std::path::{Path, PathBuf}; 9 fn exists<P: AsRef<Path>>(path: P) -> bool { in exists() function 10 std::fs::metadata(path.as_ref()).is_ok() in exists() 16 let name = tmpfile.path().file_name().unwrap().to_str().unwrap(); in test_prefix() 33 let path = tmpfile.path().to_path_buf(); in test_deleted() localVariable 34 assert!(exists(&path)); in test_deleted() 36 assert!(!exists(&path)); in test_deleted() 42 let old_path = tmpfile.path().to_path_buf(); in test_persist() 46 assert!(exists(&old_path)); in test_persist() 48 assert!(!exists(&old_path)); in test_persist() [all …]
|
D | tempdir.rs | 1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT 2 // file at the top-level directory of this distribution and at 3 // http://rust-lang.org/COPYRIGHT. 5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 14 use std::path::Path; 21 let path = { in test_tempdir() localVariable 23 let p = p.path(); in test_tempdir() 27 assert!(!path.exists()); in test_tempdir() [all …]
|
/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
H A D | FileCleaningTrackerTest.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 32 import java.nio.file.Path; 49 private Path testPath; 63 while (file.exists() && count++ < 40) { in pauseForDeleteToComplete() 69 private void pauseForDeleteToComplete(Path file) { in pauseForDeleteToComplete() 71 while (Files.exists(file) && count++ < 40) { in pauseForDeleteToComplete() 79 testFile = new File(tempDirFile, "file-test.txt"); in setUp() 116 if (!testFile.getParentFile().exists()) { in testFileCleanerDirectory_ForceStrategy_FileSource() 124 assertTrue(testFile.exists()); in testFileCleanerDirectory_ForceStrategy_FileSource() 125 assertTrue(tempDirFile.exists()); in testFileCleanerDirectory_ForceStrategy_FileSource() [all …]
|
/aosp_15_r20/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/ |
H A D | AbstractFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 35 * @version $Revision: $ - $Date: $ 58 //------------------------------------------------------------------------- 60 //------------------------------------------------------------------------- 63 * Test the exists() method 66 assert !fileSystem.exists(NEW_FILE) 67 assert !fileSystem.exists(NEW_DIR) 68 assert !fileSystem.exists(ILLEGAL_FILE) 69 assert fileSystem.exists(EXISTING_FILE) 70 assert fileSystem.exists(EXISTING_DIR) [all …]
|
/aosp_15_r20/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 22 >>> pathname = '/a/new/dir/new-file' 26 >>> os_module.path.exists(pathname) 32 >>> os_module.path.exists(pathname) 38 ... assert e.strerror == 'File exists in the fake filesystem' 43 >>> os_module.path.exists(pathname) 46 Create a new file object at the previous path: 50 >>> os_module.path.exists(pathname) 72 >>> os_module.listdir(os_module.path.dirname(pathname)) 73 ['new-file'] [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/distutils/tests/ |
D | test_archive_util.py | 1 # -*- coding: utf-8 -*- 7 from os.path import splitdrive 53 if os.path.supports_unicode_filenames: 111 base_name = os.path.join(tmpdir2, target_name) 119 self.assertTrue(os.path.exists(tarball)) 122 def _tarinfo(self, path): argument 123 tar = tarfile.open(path) 138 dist = os.path.join(tmpdir, 'dist') 142 os.mkdir(os.path.join(dist, 'sub')) 144 os.mkdir(os.path.join(dist, 'sub2')) [all …]
|
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/distutils/tests/ |
H A D | test_archive_util.py | 1 # -*- coding: utf-8 -*- 7 from os.path import splitdrive 53 if os.path.supports_unicode_filenames: 111 base_name = os.path.join(tmpdir2, target_name) 119 self.assertTrue(os.path.exists(tarball)) 122 def _tarinfo(self, path): argument 123 tar = tarfile.open(path) 138 dist = os.path.join(tmpdir, 'dist') 142 os.mkdir(os.path.join(dist, 'sub')) 144 os.mkdir(os.path.join(dist, 'sub2')) [all …]
|
/aosp_15_r20/external/python/setuptools/setuptools/_distutils/tests/ |
D | test_archive_util.py | 1 # -*- coding: utf-8 -*- 7 from os.path import splitdrive 49 if os.path.supports_unicode_filenames: 107 base_name = os.path.join(tmpdir2, target_name) 115 self.assertTrue(os.path.exists(tarball)) 118 def _tarinfo(self, path): argument 119 tar = tarfile.open(path) 134 dist = os.path.join(tmpdir, 'dist') 138 os.mkdir(os.path.join(dist, 'sub')) 140 os.mkdir(os.path.join(dist, 'sub2')) [all …]
|
/aosp_15_r20/external/fonttools/Tests/ufoLib/ |
H A D | UFOConversion_test.py | 23 path = self.getFontPath("TestFont1 (UFO1) converted.ufo") 24 if os.path.exists(path): 25 shutil.rmtree(path) 26 path = self.getFontPath("TestFont1 (UFO2) converted.ufo") 27 if os.path.exists(path): 28 shutil.rmtree(path) 31 testdata = os.path.join(os.path.dirname(__file__), "testdata") 32 return os.path.join(testdata, fileName) 36 metainfoPath1 = os.path.join(path1, "metainfo.plist") 37 fontinfoPath1 = os.path.join(path1, "fontinfo.plist") [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | test_tempfile.py | 27 # number of files that can be opened at one time (see ulimit -n) 63 self.assertIs(str, tempfile._infer_return_type(pathlib.Path('/'))) 66 class Path: class 67 def __init__(self, path): argument 68 self.path = path 71 return self.path 73 self.assertIs(str, tempfile._infer_return_type(Path('/'))) 74 self.assertIs(bytes, tempfile._infer_return_type(Path(b'/'))) 75 self.assertIs(str, tempfile._infer_return_type('', Path(''))) 76 self.assertIs(bytes, tempfile._infer_return_type(b'', Path(b''))) [all …]
|
D | test_py_compile.py | 57 self.source_path = os.path.join(self.directory, '_test.py') 60 self.cwd_drive = os.path.splitdrive(os.getcwd())[0] 62 # current working directory path and the 'self.source_path' might be 65 drive = os.path.splitdrive(self.source_path)[0] 78 self.assertTrue(os.path.exists(self.pyc_path)) 79 self.assertFalse(os.path.exists(self.cache_path)) 89 assert os.path.islink(self.pyc_path) 93 @unittest.skipIf(not os.path.exists(os.devnull) or os.path.isfile(os.devnull), 94 'requires os.devnull and for it to be a non-regular file') 96 # In the face of a cfile argument being a non-regular file, bail out. [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/testdata/script/ |
D | mod_download.txt | 8 exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.info 9 exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.mod 10 exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.zip 11 ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.info 12 ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.mod 14 # download of an invalid path should report the error 18 ! go mod download -json this.domain.is.invalid/[email protected] 21 # download -json with version should print JSON 22 go mod download -json 'rsc.io/quote@<=v1.5.0' 23 stdout '^\t"Path": "rsc.io/quote"' [all …]
|
/aosp_15_r20/art/artd/ |
H A D | file_utils_test.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 #include "android-base/errors.h" 29 #include "android-base/file.h" 30 #include "android-base/result-gmock.h" 31 #include "android-base/result.h" 54 void CheckContent(const std::string& path, const std::string& expected_content) { in CheckContent() argument 56 ASSERT_TRUE(ReadFileToString(path, &actual_content)); in CheckContent() 63 static Result<std::unique_ptr<UnkeepableFile>> Create(const std::string& path, in Create() argument 65 std::unique_ptr<NewFile> new_file = OR_RETURN(NewFile::Create(path, fs_permission)); in Create() 81 ASSERT_EQ(stat(scratch_dir_->GetPath().c_str(), &st), 0); in SetUp() [all …]
|