Home
last modified time | relevance | path

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

12345678910>>...51

/external/skia/tests/
DPathOpsAsWindingTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
16 #include "tests/Test.h"
22 SkPath path; in build_squircle() local
26 path.addRect(rect, dir); in build_squircle()
30 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
31 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
32 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
33 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle()
34 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
37 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
[all …]
/external/okio/okio/src/nonWasmTest/kotlin/okio/
DFakeFileSystemTest.kt8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
19 import kotlin.test.Test in <lambda>()
20 import kotlin.test.assertEquals in <lambda>()
21 import kotlin.test.assertFailsWith in <lambda>()
22 import kotlin.test.assertFalse in <lambda>()
23 import kotlin.test.assertNull in <lambda>()
24 import kotlin.test.assertTrue in <lambda>()
26 import okio.Path.Companion.toPath in <lambda>()
46 temporaryDirectory: Path,
57 @Test
[all …]
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
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;
42 // Test constants
50 @Test
52 Path path = new Path(); in testAddRect1() local
53 assertTrue(path.isEmpty()); in testAddRect1()
55 path.addRect(rect, Path.Direction.CW); in testAddRect1()
56 assertFalse(path.isEmpty()); in testAddRect1()
[all …]
/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 …]
/external/okio/okio-testing-support/src/commonMain/kotlin/okio/
DAbstractFileSystemTest.kt8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
18 import kotlin.test.BeforeTest in <lambda>()
19 import kotlin.test.Ignore in <lambda>()
20 import kotlin.test.Test in <lambda>()
21 import kotlin.test.assertContentEquals in <lambda>()
22 import kotlin.test.assertEquals in <lambda>()
23 import kotlin.test.assertFailsWith in <lambda>()
24 import kotlin.test.assertFalse in <lambda>()
25 import kotlin.test.assertNull in <lambda>()
26 import kotlin.test.assertTrue in <lambda>()
[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/apache-commons-io/src/test/java/org/apache/commons/io/file/
DPathUtilsTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
42 import java.nio.file.Path;
55 import org.apache.commons.io.test.TestUtils;
59 import org.junit.jupiter.api.Test;
70 private static final String TEST_JAR_NAME = "test.jar";
72 private static final String TEST_JAR_PATH = "src/test/resources/org/apache/commons/io/test.jar";
77 * Creates directory test fixtures.
80 * <li>tempDirPath/symlinked-dir -> tempDirPath/subdir</li>
83 * @return Path to tempDirPath/subdir
86 private Path createTempSymlinkedRelativeDir() throws IOException { in createTempSymlinkedRelativeDir()
[all …]
/external/cronet/net/third_party/nist-pkits/
Dgenerate_tests.py2 # Use of this source code is governed by a BSD-style license that can be
5 '''Generates a test suite from NIST PKITS test descriptions.
11 sections that pertain to non-implemented features).
25 return s.translate(str.maketrans('', '', ' -'))
45 '''Writes a test case to |output|, and appends the test name to
81 # Output any non-default inputs/outputs. Only properties that differ from
107 this->RunTest(certs, crls, info);
114 # Matches a test header, ex: "4.1.1 Valid Signatures Test1"
117 # Matches the various headers in a test specification.
120 PATH_HEADER_MATCHER = re.compile('^\s*Certification Path:')
[all …]
/external/cronet/third_party/boringssl/src/pki/testdata/nist-pkits/
Dgenerate_tests.py2 # Use of this source code is governed by a BSD-style license that can be
5 '''Generates a test suite from NIST PKITS test descriptions.
11 sections that pertain to non-implemented features).
25 return s.translate(str.maketrans('', '', ' -'))
45 '''Writes a test case to |output|, and appends the test name to
81 # Output any non-default inputs/outputs. Only properties that differ from
107 this->RunTest(certs, crls, info);
114 # Matches a test header, ex: "4.1.1 Valid Signatures Test1"
117 # Matches the various headers in a test specification.
120 PATH_HEADER_MATCHER = re.compile('^\s*Certification Path:')
[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/tko/
Dparse.py1 #!/usr/bin/python3 -u
48 # client side test control, as saved in old Autotest paths.
50 # server side test control, as saved in old Autotest paths.
64 parser.add_option("-m", help="Send mail for FAILED tests",
66 parser.add_option("-r", help="Reparse the results of a job",
68 parser.add_option("-o", help="Parse a single results directory",
70 parser.add_option("-l", help=("Levels of subdirectories to include "
73 parser.add_option("-n", help="No blocking on an existing parse",
75 parser.add_option("-s", help="Database server hostname",
77 parser.add_option("-u", help="Database username", dest="db_user",
[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/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/zstd/tests/cli-tests/
Drun.py6 # This source code is licensed under both the BSD-style license (found in the
9 # You may select, at your option, one of the above-listed licenses.
67 def exclude_dir(dirname: str) -> bool:
69 Should files under the directory :dirname: be excluded from the test runner?
76 def exclude_file(filename: str) -> bool:
77 """Should the file :filename: be excluded from the test runner?"""
85 def read_file(filename: str) -> bytes:
91 def diff(a: bytes, b: bytes) -> str:
92 """Returns a diff between two different byte-strings :a: and :b:."""
105 def pop_line(data: bytes) -> typing.Tuple[typing.Optional[bytes], bytes]:
[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/autotest/client/bin/
Dbase_sysinfo.py18 'lspci -vvnn',
19 'gcc --version',
20 'ld --version',
26 'dlcservice_util --list',
76 path = os.path.join(logdir, self.logf)
77 if os.path.exists(path):
78 return utils.read_one_line(path)
93 def __init__(self, path, logf=None, log_in_keyval=False): argument
95 logf = os.path.basename(path)
97 self.path = path
[all …]
/external/python/cpython3/Lib/test/test_import/
D__init__.py21 from test.support import os_helper
22 from test.support import (
25 from test.support.import_helper import (
27 from test.support.os_helper import (
29 from test.support import script_helper
30 from test.support import threading_helper
31 from test.test_importlib.util import uncache
37 "test meaningful only when writing bytecode")
56 path = script_helper.make_script(tempdir, name, source)
59 sys.path.insert(0, tempdir)
[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/apache-commons-io/src/test/java/org/apache/commons/io/filefilter/
DRegexFileFilterTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
29 import java.nio.file.Path;
36 import org.junit.jupiter.api.Test;
64 … public void assertFiltering(final IOFileFilter filter, final Path path, final boolean expected) { in assertFiltering() argument
65 // Note. This only tests the (Path, Path) version if the parent of in assertFiltering()
66 // the Path passed in is not null in assertFiltering()
68 assertEquals(expectedFileVisitResult, filter.accept(path, null), in assertFiltering()
69 …"Filter(Path) " + filter.getClass().getName() + " not " + expectedFileVisitResult + " for " + path in assertFiltering()
70 assertEquals(expectedFileVisitResult != FileVisitResult.TERMINATE, filter.matches(path), in assertFiltering()
71 …"Filter(Path) " + filter.getClass().getName() + " not " + expectedFileVisitResult + " for " + path in assertFiltering()
[all …]
/external/autotest/client/cros/bluetooth/
Dbluetooth_audio_test_data.py3 # Use of this source code is governed by a BSD-style license that can be
6 """bluetooth audio test dat for A2DP, AVRCP, and HFP."""
17 # Chameleon device's data storing path.
20 DEVICE_AUDIO_DATA_DIR = '/usr/share/autotest/audio-test-data'
23 DIST_FILES = 'gs://chromeos-localmirror/distfiles'
28 VISQOL_TARBALL = os.path.join(DIST_FILES, 'visqol-binary.tar.gz')
29 # Path to ViSQOL tarball in autotest server
30 VISQOL_TARBALL_LOCAL_PATH = os.path.join(DATA_DIR,
31 os.path.split(VISQOL_TARBALL)[1])
32 VISQOL_FOLDER = os.path.join(DATA_DIR, 'visqol')
[all …]
/external/pigweed/pw_emu/py/tests/
Dcore_test.py8 # https://www.apache.org/licenses/LICENSE-2.0
26 from pathlib import Path
46 def setUp(self) -> None:
48 self._launcher = Launcher.get('mock-emu', Path(self._config_file))
56 'mock-emu': {
63 def test_invalid_target(self) -> None:
65 self._launcher.start(Path(self._wdir.name), 'test-target')
73 'mock-emu': {
78 'targets': {'test-target': {'mock-emu': {}}},
81 def setUp(self) -> None:
[all …]
/external/angle/build/chromeos/
Dtest_runner.py4 # Use of this source code is governed by a BSD-style license that can be
19 # The following non-std imports are fetched via vpython. See the list at
21 import dateutil.parser # pylint: disable=import-error
22 import jsonlines # pylint: disable=import-error
23 import psutil # pylint: disable=import-error
25 CHROMIUM_SRC_PATH = os.path.abspath(
26 os.path.join(os.path.dirname(__file__), '..', '..'))
28 # Use the android test-runner's gtest results support library for generating
30 sys.path.insert(0, os.path.join(CHROMIUM_SRC_PATH, 'build', 'android'))
31 from pylib.base import base_test_result # pylint: disable=import-error
[all …]
/external/cronet/build/chromeos/
Dtest_runner.py4 # Use of this source code is governed by a BSD-style license that can be
19 # The following non-std imports are fetched via vpython. See the list at
21 import dateutil.parser # pylint: disable=import-error
22 import jsonlines # pylint: disable=import-error
23 import psutil # pylint: disable=import-error
25 CHROMIUM_SRC_PATH = os.path.abspath(
26 os.path.join(os.path.dirname(__file__), '..', '..'))
28 # Use the android test-runner's gtest results support library for generating
30 sys.path.insert(0, os.path.join(CHROMIUM_SRC_PATH, 'build', 'android'))
31 from pylib.base import base_test_result # pylint: disable=import-error
[all …]

12345678910>>...51