Home
last modified time | relevance | path

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

12345678910>>...52

/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/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/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/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/apache-commons-io/src/test/java/org/apache/commons/io/file/
DPathUtilsTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
44 import java.nio.file.Path;
57 import org.apache.commons.io.test.TestUtils;
61 import org.junit.jupiter.api.Test;
72 private static final String TEST_JAR_NAME = "test.jar";
74 private static final String TEST_JAR_PATH = "src/test/resources/org/apache/commons/io/test.jar";
79 * Creates directory test fixtures.
82 * <li>tempDirPath/symlinked-dir -> tempDirPath/subdir</li>
85 * @return Path to tempDirPath/subdir
88 private Path createTempSymlinkedRelativeDir() throws IOException { in createTempSymlinkedRelativeDir()
[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/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/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/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/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/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/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/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 …]
/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/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/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/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;
60 … public void assertFiltering(final IOFileFilter filter, final Path path, final boolean expected) { in assertFiltering() argument
61 // Note. This only tests the (Path, Path) version if the parent of in assertFiltering()
62 // the Path passed in is not null in assertFiltering()
64 assertEquals(expectedFileVisitResult, filter.accept(path, null), in assertFiltering()
65 …"Filter(Path) " + filter.getClass().getName() + " not " + expectedFileVisitResult + " for " + path in assertFiltering()
67 if (path != null && path.getParent() != null) { in assertFiltering()
68 assertEquals(expectedFileVisitResult, filter.accept(path, null), in assertFiltering()
[all …]
/external/cronet/build/chromeos/
Dtest_runner.py4 # Use of this source code is governed by a BSD-style license that can be
20 # The following non-std imports are fetched via vpython. See the list at
22 import dateutil.parser # pylint: disable=import-error
23 import jsonlines # pylint: disable=import-error
24 import psutil # pylint: disable=import-error
26 CHROMIUM_SRC_PATH = os.path.abspath(
27 os.path.join(os.path.dirname(__file__), '..', '..'))
29 # Use the android test-runner's gtest results support library for generating
31 sys.path.insert(0, os.path.join(CHROMIUM_SRC_PATH, 'build', 'android'))
32 from pylib.base import base_test_result # pylint: disable=import-error
[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/cronet/build/lacros/
Dtest_runner.py4 # Use of this source code is governed by a BSD-style license that can be
9 to setup build directory with the lacros-chrome-on-linux build configuration,
10 and corresponding test targets are built successfully.
14 ./build/lacros/test_runner.py test out/lacros/url_unittests
15 ./build/lacros/test_runner.py test out/lacros/browser_tests
19 executed with the latest version of prebuilt ash-chrome, and the behavior is
24 ./build/lacros/test_runner.py test out/lacros/browser_tests \\
25 --gtest_filter=BrowserTest.Title
28 the underlying test binary can be specified in the command.
30 ./build/lacros/test_runner.py test out/lacros/browser_tests \\
[all …]
/external/toolchain-utils/llvm_tools/
Dupdate_chromeos_llvm_hash_unittest.py2 # -*- coding: utf-8 -*-
4 # Use of this source code is governed by a BSD-style license that can be
13 from pathlib import Path
28 # pylint: disable=protected-access
32 """Test class for updating LLVM hashes of packages."""
34 @mock.patch.object(os.path, "realpath")
37 "/path/to/cros/src/third_party/toolchain-utils/llvm_tools"
41 update_chromeos_llvm_hash.defaultCrosRoot(), Path("/path/to/cros")
44 @mock.patch.object(os.path, "realpath")
46 mock_llvm_tools.return_value = "~/toolchain-utils/llvm_tools"
[all …]

12345678910>>...52