Home
last modified time | relevance | path

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

12345678910>>...45

/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsUnixLikeFileSystemTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
80 import java.nio.file.Path;
94 import org.junit.Test;
99 * Tests an in-memory file system through the public APIs in {@link Files}, etc. This also acts as
103 * <p>These tests uses a Unix-like file system, but most of what they test applies to any file
123 @Test
127 .containsExactlyElementsIn(ImmutableSet.of(path("/"))) in testFileSystem()
135 @Test
154 assertThat(fileStore.getUnallocatedSpace() <= totalSpace - 10000).isTrue(); in testFileStore()
166 @Test
[all …]
DJimfsWindowsLikeFileSystemTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
31 import java.nio.file.Path;
35 import org.junit.Test;
40 * Tests a Windows-like file system through the public methods in {@link Files}.
57 @Test
61 .containsExactlyElementsIn(ImmutableSet.of(path("C:\\"), path("E:\\"))) in testFileSystem()
70 @Test
83 @Test
85 assertThatPath("C:\\").isEqualTo(path("c:\\")); in testPaths_equalityIsCaseInsensitive()
86 assertThatPath("foo").isEqualTo(path("FOO")); in testPaths_equalityIsCaseInsensitive()
[all …]
DPathTester.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 import java.nio.file.Path;
61 public void test(String first, String... more) { in test() method in PathTester
62 Path path = pathService.parsePath(first, more); in test() local
63 test(path); in test()
66 public void test(Path path) { in test() argument
67 assertEquals(string, path.toString()); in test()
69 testRoot(path); in test()
70 testNames(path); in test()
71 testParents(path); in test()
[all …]
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativePathTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 import android.graphics.Path;
32 import androidx.test.ext.junit.runners.AndroidJUnit4;
33 import org.junit.Test;
43 // Test constants
51 @Test
53 Path path = new Path(); in testAddRect1() local
54 assertTrue(path.isEmpty()); in testAddRect1()
56 path.addRect(rect, Path.Direction.CW); in testAddRect1()
57 assertFalse(path.isEmpty()); in testAddRect1()
[all …]
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py1 import os.path
2 from os.path import abspath
7 from test import support
8 from test.support import import_helper
9 import test.test_importlib.util
13 import unittest.test
50 original_isfile = os.path.isfile
52 os.path.isfile = original_isfile
53 original_isdir = os.path.isdir
55 os.path.isdir = original_isdir
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py6 import unittest.test
32 original_isfile = os.path.isfile
34 os.path.isfile = original_isfile
35 original_isdir = os.path.isdir
37 os.path.isdir = original_isdir
40 'test.foo', 'test-not-a-module.py', 'another_dir'],
42 os.listdir = lambda path: path_lists.pop(0)
45 def isdir(path): argument
46 return path.endswith('dir')
47 os.path.isdir = isdir
[all …]
/external/autotest/tko/
Dparse.py1 #!/usr/bin/python2 -u
45 # client side test control, as saved in old Autotest paths.
47 # server side test control, as saved in old Autotest paths.
58 parser.add_option("-m", help="Send mail for FAILED tests",
60 parser.add_option("-r", help="Reparse the results of a job",
62 parser.add_option("-o", help="Parse a single results directory",
64 parser.add_option("-l", help=("Levels of subdirectories to include "
67 parser.add_option("-n", help="No blocking on an existing parse",
69 parser.add_option("-s", help="Database server hostname",
71 parser.add_option("-u", help="Database username", dest="db_user",
[all …]
/external/autotest/client/cros/audio/
Daudio_test_data.py3 # Use of this source code is governed by a BSD-style license that can be
5 """This module provides audio test data."""
16 """Exception for audio test data."""
21 """Class to represent audio test data."""
25 path=None, argument
29 Initializes an audio test file.
38 @param path: The path to the file.
41 @param duration_secs: Duration of test file in seconds.
43 @raises: AudioTestDataException if the path does not exist.
47 if not os.path.exists(path):
[all …]
/external/autotest/client/bin/
Dbase_sysinfo.py18 'lspci -vvn',
19 'gcc --version',
20 'ld --version',
26 'dlcservice_util --list',
75 path = os.path.join(logdir, self.logf)
76 if os.path.exists(path):
77 return utils.read_one_line(path)
92 def __init__(self, path, logf=None, log_in_keyval=False): argument
94 logf = os.path.basename(path)
96 self.path = path
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/app-route/test/
Dapp-route.html2 <!--
10 -->
13 <title>app-route</title>
15 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
16 <script src="../../web-component-tester/browser.js"></script>
19 <link rel="import" href="../app-route.html">
23 <test-fixture id="BasicRoute">
25 <app-route pattern='/user/:username'>
26 </app-route>
28 </test-fixture>
[all …]
/external/rust/crates/syn/tests/
Dtest_attribute.rs7 #[test]
9 let meta = test("#[foo]"); in test_meta_item_word()
12 Path(Path { in test_meta_item_word()
23 #[test]
25 let meta = test("#[foo = 5]"); in test_meta_item_name_value()
29 path: Path { in test_meta_item_name_value()
42 #[test]
44 let meta = test("#[foo = true]"); in test_meta_item_bool_value()
48 path: Path { in test_meta_item_bool_value()
62 let meta = test("#[foo = false]"); in test_meta_item_bool_value()
[all …]
/external/llvm/utils/lit/lit/
Ddiscovery.py2 Test discovery functions.
11 from lit import LitConfig, Test
13 def dirContainsTestSuite(path, lit_config): argument
14 cfgpath = os.path.join(path, lit_config.site_config_name)
15 if os.path.exists(cfgpath):
17 cfgpath = os.path.join(path, lit_config.config_name)
18 if os.path.exists(cfgpath):
22 """getTestSuite(item, litConfig, cache) -> (suite, relative_path)
24 Find the test suite containing @arg item.
26 @retval (None, ...) - Indicates no test suite contains @arg item.
[all …]
/external/python/cpython3/Lib/test/test_import/
D__init__.py21 from test.support import os_helper
22 from test.support import (is_jython, swap_attr, swap_item, cpython_only)
23 from test.support.import_helper import (
25 from test.support.os_helper import (
27 from test.support import script_helper
28 from test.support import threading_helper
29 from test.test_importlib.util import uncache
35 "test meaningful only when writing bytecode")
54 path = script_helper.make_script(tempdir, name, source)
57 sys.path.insert(0, tempdir)
[all …]
/external/ltp/testcases/network/nfsv4/acl/
Dtest_acl.py4 Aurelien Charbon - Bull SA
13 alphabet='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_-() ~'
16 def test_acl_default(path): argument
18 # set default acl on the test directory
19 u = subprocess.getoutput('mkdir ' + path + "/" + testdir)
20 u = subprocess.getoutput('getfacl ' + path + "/" + testdir)
22 for i in range (len(splitedresult)-1):
28 u = subprocess.getoutput('touch ' + path + "/" + testdir + testfile)
30 u = subprocess.getoutput('getfacl ' + path + "/" + testdir + testfile)
33 for i in range (len(splitedresult)-1):
[all …]
/external/rust/crates/syn/tests/repo/
Dmod.rs9 use std::path::Path;
19 "src/test/ui/rfc-2632-const-trait-impl/syntax.rs",
21 // Compile-fail expr parameter in const generic position: f::<1 + 2>()
22 "src/test/ui/const-generics/early/closing-args-token.rs",
23 "src/test/ui/const-generics/early/const-expression-parameter.rs",
26 "src/test/ui/issues/issue-13105.rs",
27 "src/test/ui/issues/issue-13775.rs",
28 "src/test/ui/issues/issue-34074.rs",
29 "src/test/ui/proc-macro/trait-fn-args-2015.rs",
34 "src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs",
[all …]
/external/python/cpython3/Lib/test/
Dtest_support.py16 from test import support
17 from test.support import import_helper
18 from test.support import os_helper
19 from test.support import script_helper
20 from test.support import socket_helper
21 from test.support import warnings_helper
31 "test.support.warnings_helper", like=".*used in test_support.*"
34 "test.test_support", like=".*You should NOT be seeing this.*"
45 assert len(warnings.filters) == orig_filter_len - 2
48 """Test support.ignore_deprecations_from() silences warnings"""
[all …]
Dtest_compileall.py13 import test.test_importlib.util
28 from test import support
29 from test.support import os_helper
30 from test.support import script_helper
31 from test.test_py_compile import without_source_date_epoch
32 from test.test_py_compile import SourceDateEpochTestMeta
57 self.source_path = os.path.join(self.directory, '_test.py')
59 with open(self.source_path, 'w', encoding="utf-8") as file:
61 self.source_path2 = os.path.join(self.directory, '_test2.py')
64 self.subdirectory = os.path.join(self.directory, '_subdir')
[all …]
/external/python/cpython2/Lib/unittest/
Dloader.py19 VALID_MODULE_NAME = re.compile(r'[_a-z]\w*\.py$', re.IGNORECASE)
23 message = 'Failed to import test module: %s\n%s' % (name, traceback.format_exc())
43 testMethodPrefix = 'test'
49 """Return a suite of all test cases contained in testCaseClass"""
51 raise TypeError("Test cases should not be derived from TestSuite." \
60 """Return a suite of all test cases contained in the given module"""
78 """Return a suite of all test cases given a string specifier.
80 The name may resolve either to a module, a test case class, a
81 test method within a test case class, or a callable object which
94 del parts_copy[-1]
[all …]
/external/pigweed/pw_unit_test/py/pw_unit_test/
Dtest_runner.py7 # https://www.apache.org/licenses/LICENSE-2.0
25 from pathlib import Path
35 def register_arguments(parser: argparse.ArgumentParser) -> None:
36 """Registers command-line arguments."""
38 parser.add_argument('--root',
41 help='Path to the root build directory')
42 parser.add_argument('-r',
43 '--runner',
46 help='Executable which runs a test on the target')
47 parser.add_argument('-m',
[all …]
/external/slf4j/integration/
Dbuild.xml3 <!--
9 ant -DcurrentVersion=1.5.4-SNAPSHOT
10 -->
14 <echo message="test classpath: ${test_classpath}" />
18 <path id="path142Binding">
19 <pathelement location="target/test-classes/" />
20 <pathelement location="../slf4j-api/target/slf4j-api-${currentVersion}.jar" />
21 <pathelement location="./lib/slf4j-simple-1.4.2.jar" />
22 </path >
24 <path id="path150Binding">
[all …]
/external/autotest/site_utils/
Dgs_offloader_unittest.py3 # Use of this source code is governed by a BSD-style license that can be
40 # Test value to use for `days_old`, if nothing else is required.
54 def is_fifo(path): argument
55 """Determines whether a path is a fifo.
57 @param path: fifo path string.
59 return stat.S_ISFIFO(os.lstat(path).st_mode)
106 'Fa:ke:ma:c0:12:34', 'rand0m-uu1d')
134 """Test default offloader options."""
147 """Test offloader handling for the --all option."""
149 offloader = gs_offloader.Offloader(_get_options(['--all']))
[all …]
/external/webrtc/test/testsupport/
Dfile_utils_unittest.cc4 * Use of this source code is governed by a BSD-style license
11 #include "test/testsupport/file_utils.h"
21 #include "test/gmock.h"
22 #include "test/gtest.h"
31 namespace test { namespace
35 std::string Path(const std::string& path) { in Path() function
36 std::string result = path; in Path()
41 // Remove files and directories in a directory non-recursively and writes the
69 // Test fixture to restore the working directory between each test, since some
72 class FileUtilsTest : public ::testing::Test {
[all …]
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dsimulation.py3 # Use of this source code is governed by a BSD-style license
35 _PREFIX_APM_CONFIG = 'apmcfg-'
36 _PREFIX_CAPTURE = 'capture-'
37 _PREFIX_RENDER = 'render-'
38 _PREFIX_ECHO_SIMULATOR = 'echosim-'
39 _PREFIX_TEST_DATA_GEN = 'datagen-'
40 _PREFIX_TEST_DATA_GEN_PARAMS = 'datagen_params-'
41 _PREFIX_SCORE = 'score-'
114 config_filepaths: set of APM configuration files to test.
115 capture_input_filepaths: set of capture input audio track files to test.
[all …]
/external/dokka/core/src/test/kotlin/format/
DMarkdownFormatTest.kt6 import org.junit.Test in <lambda>()
11 @Test fun emptyDescription() { in <lambda>()
15 @Test fun classWithCompanionObject() { in <lambda>()
19 @Test fun annotations() { in <lambda>()
23 @Test fun annotationClass() { in <lambda>()
28 @Test fun exceptionClass() { in <lambda>()
33 @Test fun annotationParams() { in <lambda>()
37 @Test fun extensions() { in <lambda>()
38 verifyOutput("testdata/format/extensions.kt", ".package.md") { model, output -> in <lambda>()
41 verifyOutput("testdata/format/extensions.kt", ".class.md") { model, output -> in <lambda>()
[all …]
/external/autotest/client/cros/bluetooth/
Dbluetooth_audio_test_data.py2 # Use of this source code is governed by a BSD-style license that can be
5 """bluetooth audio test dat for A2DP, AVRCP, and HFP."""
16 DIST_FILES = 'gs://chromeos-localmirror/distfiles'
21 VISQOL_TARBALL = os.path.join(DIST_FILES, 'visqol-binary.tar.gz')
22 # Path to ViSQOL tarball in autotest server
23 VISQOL_TARBALL_LOCAL_PATH = os.path.join(DATA_DIR,
24 os.path.split(VISQOL_TARBALL)[1])
25 VISQOL_FOLDER = os.path.join(DATA_DIR, 'visqol')
26 VISQOL_PATH = os.path.join(VISQOL_FOLDER, 'visqol')
31 # and should be updated when possible. ("master" -> "main")
[all …]

12345678910>>...45