Home
last modified time | relevance | path

Searched refs:testPath (Results 1 – 25 of 107) sorted by relevance

12345

/external/llvm-project/clang-tools-extra/clangd/unittests/
DBackgroundIndexTests.cpp95 FS.Files[testPath("root/A.cc")] = "error file"; in TEST_F()
104 Cmd.Filename = testPath("root/A.cc"); in TEST_F()
105 Cmd.Directory = testPath("root"); in TEST_F()
106 Cmd.CommandLine = {"clang++", "-DA=1", testPath("root/A.cc")}; in TEST_F()
107 CDB.setCompileCommand(testPath("root/A.cc"), Cmd); in TEST_F()
153 std::string FullPath = testPath(Cmd.Filename); in TEST_F()
166 FS.Files[testPath("root/A.h")] = R"cpp( in TEST_F()
175 FS.Files[testPath("root/A.cc")] = in TEST_F()
177 FS.Files[testPath("root/B.cc")] = in TEST_F()
197 Cmd.Filename = testPath("root/A.cc"); in TEST_F()
[all …]
DGlobalCompilationDatabaseTests.cpp44 auto Cmd = DB.getFallbackCommand(testPath("foo/bar.cc")); in TEST()
45 EXPECT_EQ(Cmd.Directory, testPath("foo")); in TEST()
46 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", testPath("foo/bar.cc"))); in TEST()
50 Cmd = DB.getFallbackCommand(testPath("foo/bar.h")); in TEST()
52 testPath("foo/bar.h"))); in TEST()
53 Cmd = DB.getFallbackCommand(testPath("foo/bar")); in TEST()
55 testPath("foo/bar"))); in TEST()
68 if (File == testPath("foo.cc")) in getCompileCommand()
90 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine, in TEST_F()
91 AllOf(Contains(testPath("foo.cc")), Contains("-DA=1"))); in TEST_F()
[all …]
DHeaderSourceSwitchTests.cpp25 auto FooCpp = testPath("foo.cpp"); in TEST()
26 auto FooH = testPath("foo.h"); in TEST()
27 auto Invalid = testPath("main.cpp"); in TEST()
43 auto FooC = testPath("bar.c"); in TEST()
44 auto FooHH = testPath("bar.HH"); in TEST()
53 auto Foo2C = testPath("foo2.C"); in TEST()
54 auto Foo2HH = testPath("foo2.HH"); in TEST()
62 auto Foo3C = testPath("foo3.C"); in TEST()
63 auto Foo3HXX = testPath("foo3.hxx"); in TEST()
154 testPath("a.cpp")}, in TEST()
[all …]
DHeadersTests.cpp41 FS.Files[testPath("sub/EMPTY")] = ""; in HeadersTest()
125 std::string MainFile = testPath("main.cpp");
126 std::string Subdir = testPath("sub");
148 std::string BarHeader = testPath("sub/bar.h"); in TEST_F()
156 Distance(testPath("sub/bar.h"), 1u))); in TEST_F()
160 std::string BazHeader = testPath("sub/baz.h"); in TEST_F()
162 std::string BarHeader = testPath("sub/bar.h"); in TEST_F()
174 Distance(testPath("sub/bar.h"), 1u), in TEST_F()
175 Distance(testPath("sub/baz.h"), 2u))); in TEST_F()
177 EXPECT_THAT(collectIncludes().includeDepth(testPath("sub/bar.h")), in TEST_F()
[all …]
DFSTests.cpp25 PreambleFileStatusCache StatCache(testPath("main")); in TEST()
31 EXPECT_TRUE(StatCache.lookup(testPath("x")).hasValue()); in TEST()
32 EXPECT_TRUE(StatCache.lookup(testPath("y")).hasValue()); in TEST()
34 EXPECT_FALSE(StatCache.lookup(testPath("main")).hasValue()); in TEST()
42 auto Cached = ConsumeFS->status(testPath("fake")); in TEST()
44 EXPECT_EQ(Cached->getName(), testPath("fake")); in TEST()
49 auto CachedDotDot = ConsumeFS->status(testPath("temp/../fake")); in TEST()
51 EXPECT_EQ(CachedDotDot->getName(), testPath("temp/../fake")); in TEST()
DCompileCommandsTests.cpp41 Mangler.ClangPath = testPath("fake/clang"); in TEST()
42 Mangler.ResourceDir = testPath("fake/resources"); in TEST()
43 Mangler.Sysroot = testPath("fake/sysroot"); in TEST()
47 EXPECT_THAT(Cmd, ElementsAre(testPath("fake/clang++"), "foo.cc", in TEST()
49 "-resource-dir=" + testPath("fake/resources"), in TEST()
50 "-isysroot", testPath("fake/sysroot"))); in TEST()
55 Mangler.ResourceDir = testPath("fake/resources"); in TEST()
58 EXPECT_THAT(Cmd, Contains("-resource-dir=" + testPath("fake/resources"))); in TEST()
63 Mangler.Sysroot = testPath("fake/sysroot"); in TEST()
68 HasSubstr("-isysroot " + testPath("fake/sysroot"))); in TEST()
[all …]
DIndexActionTests.cpp113 std::string MainFilePath = testPath("main.cpp"); in TEST_F()
115 std::string Level1HeaderPath = testPath("level1.h"); in TEST_F()
117 std::string Level2HeaderPath = testPath("level2.h"); in TEST_F()
141 std::string MainFilePath = testPath("main.cpp"); in TEST_F()
143 std::string HeaderPath = testPath("header.h"); in TEST_F()
166 std::string MainFilePath = testPath("main.cpp"); in TEST_F()
172 std::string CommonHeaderPath = testPath("common.h"); in TEST_F()
179 std::string HeaderPath = testPath("header.h"); in TEST_F()
205 std::string MainFilePath = testPath("main.cpp"); in TEST_F()
214 std::string HeaderPath = testPath("header.h"); in TEST_F()
[all …]
DConfigCompileTests.cpp130 auto BarPath = llvm::sys::path::convert_to_slash(testPath("foo/bar.h")); in TEST_F()
141 llvm::sys::path::convert_to_slash(testPath("foo/bar.h")), in TEST_F()
147 llvm::sys::path::convert_to_slash(testPath("bar/bar.h")), in TEST_F()
153 testPath("baz"), in TEST_F()
159 testPath("foo"), in TEST_F()
232 auto BazPath = testPath("foo/bar/baz.h", llvm::sys::path::Style::posix); in TEST_F()
236 External.File.emplace(testPath("foo")); in TEST_F()
238 testPath("foo/bar", llvm::sys::path::Style::posix)); in TEST_F()
250 External.File.emplace(testPath("foo")); in TEST_F()
257 auto BarPath = testPath("foo/bar.h", llvm::sys::path::Style::posix); in TEST_F()
[all …]
DClangdTests.cpp178 FS.Files[testPath(FileWithContents.first)] =
181 auto SourceFilename = testPath(SourceFileRelPath);
235 auto FooCpp = testPath("foo.cpp"); in TEST()
237 FS.Files[testPath("foo.h")] = "int a;"; in TEST()
270 auto FooCpp = testPath("foo.cpp"); in TEST()
271 auto FooH = testPath("foo.h"); in TEST()
321 Server.addDocument(testPath("foo.cpp"), "void main(){}"); in TEST()
357 Server.addDocument(testPath("foo.cc"), Example.code()); in TEST()
358 auto Result = runLocateSymbolAt(Server, testPath("foo.cc"), Example.point()); in TEST()
363 Server.addDocument(testPath("bar.cc"), Example.code()); in TEST()
[all …]
DConfigProviderTests.cpp95 auto P = Provider::fromYAMLFile(testPath("foo.yaml"), /*Directory=*/"", FS); in TEST()
99 EXPECT_THAT(Diags.Files, ElementsAre(testPath("foo.yaml"))); in TEST()
111 EXPECT_THAT(Diags.Files, ElementsAre(testPath("foo.yaml"))); in TEST()
128 testPath("a/b/c/d/test.cc", llvm::sys::path::Style::posix); in TEST()
132 testPath("a/b/e/f/test.cc", llvm::sys::path::Style::posix); in TEST()
149 ElementsAre(testPath("a/foo.yaml"), testPath("a/b/c/foo.yaml"))); in TEST()
175 auto P = Provider::fromYAMLFile(testPath("foo.yaml"), /*Directory=*/"", FS); in TEST()
213 const auto BarPath = testPath("baz/bar.h", llvm::sys::path::Style::posix); in TEST()
221 Provider::fromYAMLFile(testPath("baz/foo.yaml"), /*Directory=*/"", FS); in TEST()
DURITests.cpp145 EXPECT_EQ(resolveOrDie(parseOrDie("unittest:///a"), testPath("x")), in TEST()
146 testPath("a")); in TEST()
182 EXPECT_EQ(resolvePathOrDie(testPath("x"), testPath("hint")), testPath("x")); in TEST()
184 auto Resolve = URI::resolvePath(testPath("x"), FilePath); in TEST()
190 auto Path = testPath("x"); in TEST()
DParsedASTTests.cpp272 FS.Files = {{testPath("foo.cpp"), "void test() {}"}}; in TEST()
277 testPath("foo.cpp")}; in TEST()
283 "clang", "-Xclang", "-fsome-unknown-flag", testPath("foo.cpp")}; in TEST()
514 auto PatchedAST = ParsedAST::build(testPath(TU.Filename), TU.inputs(FS), in TEST()
529 auto PatchedAST = ParsedAST::build(testPath(TU.Filename), TU.inputs(FS), in TEST()
534 ElementsAre(WithFileName(testPath("__preamble_patch__.h")), in TEST()
554 TU.ExtraArgs = {"-I" + testPath("sub")}; in TEST()
565 buildPreamble(testPath("foo.cpp"), *CI, Inputs, true, nullptr); in TEST()
572 auto PatchedAST = ParsedAST::build(testPath("foo.cpp"), Inputs, std::move(CI), in TEST()
590 testPath("foo.cpp"))), in TEST()
[all …]
DTestTU.cpp25 std::string FullFilename = testPath(Filename), in inputs()
26 FullHeaderName = testPath(HeaderFilename), in inputs()
27 ImportThunk = testPath("import_thunk.h"); in inputs()
94 return clang::clangd::buildPreamble(testPath(Filename), *CI, Inputs, in preamble()
109 auto Preamble = clang::clangd::buildPreamble(testPath(Filename), *CI, Inputs, in build()
112 auto AST = ParsedAST::build(testPath(Filename), Inputs, std::move(CI), in build()
161 Idx->updatePreamble(testPath(Filename), /*Version=*/"null", in index()
164 Idx->updateMain(testPath(Filename), AST); in index()
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/
DMarshallingTests.cpp41 auto URI = URI::createFile(testPath(Path)); in testPathURI()
94 testPath("remote/machine/projects/llvm-project/"), in TEST()
95 testPath("home/my-projects/llvm-project/")); in TEST()
127 URI::create(testPath("project/lib/HelloWorld.cpp"), "unittest"); in TEST()
150 Marshaller ProtobufMarshaller(testPath("home/"), testPath("home/")); in TEST()
188 auto UnittestURI = URI::create(testPath("home/SomePath.h"), "unittest"); in TEST()
205 Marshaller WrongMarshaller(testPath("nothome/"), testPath("home/")); in TEST()
227 Marshaller ProtobufMarshaller(testPath("llvm-project/"), in TEST()
228 testPath("llvm-project/")); in TEST()
246 Strings.save(URI::createFile(testPath("project/Header.h")).toString()); in TEST()
[all …]
/external/antlr/runtime/Python3/
Dsetup.py104 for testPath in glob.glob(os.path.join(testDir, 'test*.py')):
105 testFiles.append(testPath)
108 for testPath in testFiles:
109 testID = os.path.basename(testPath)[:-3]
128 (os.path.basename(testPath), buf.getvalue())
220 for testPath in glob.glob(os.path.join(testDir, test_glob)):
221 if testPath.endswith('Lexer.py') or testPath.endswith('Parser.py'):
227 and not os.path.basename(testPath)[:-3].startswith(self.testcase)):
230 testFiles.append(testPath)
233 for testPath in testFiles:
[all …]
/external/antlr/runtime/Python/
Dsetup.py101 for testPath in glob.glob(os.path.join(testDir, 'test*.py')):
102 testFiles.append(testPath)
105 for testPath in testFiles:
106 testID = os.path.basename(testPath)[:-3]
125 (os.path.basename(testPath), buf.getvalue())
226 for testPath in glob.glob(os.path.join(testDir, test_glob)):
227 if testPath.endswith('Lexer.py') or testPath.endswith('Parser.py'):
233 and not os.path.basename(testPath)[:-3].startswith(self.testcase)):
236 testFiles.append(testPath)
239 for testPath in testFiles:
[all …]
/external/skia/docs/examples/
DCanvas_quickReject_2.cpp9 SkPath testPath, clipPath; in draw() local
10 testPath.addPoly(testPoints, SK_ARRAY_COUNT(testPoints), true); in draw()
14 SkDebugf("quickReject %s\n", canvas->quickReject(testPath) ? "true" : "false"); in draw()
18 SkDebugf("quickReject %s\n", canvas->quickReject(testPath) ? "true" : "false"); in draw()
/external/libcxx/utils/libcxx/test/
Dgooglebenchmark.py85 testPath = path_in_suite + (subdir, fn, testname)
86 yield lit.Test.Test(testSuite, testPath, localConfig,
90 testPath,testName = os.path.split(test.getSourcePath())
91 while not os.path.exists(testPath):
94 testPath, namePrefix = os.path.split(testPath)
97 cmd = [testPath, '--benchmark_filter=%s$' % testName ] + self.benchmark_args
/external/llvm-project/llvm/utils/lit/lit/formats/
Dgoogletest.py103 testPath = path_in_suite + (subdir, fn, testname)
104 yield lit.Test.Test(testSuite, testPath, localConfig,
108 testPath,testName = os.path.split(test.getSourcePath())
109 while not os.path.exists(testPath):
112 testPath, namePrefix = os.path.split(testPath)
115 cmd = [testPath, '--gtest_filter=' + testName]
/external/llvm-project/libcxx/utils/libcxx/test/
Dgooglebenchmark.py85 testPath = path_in_suite + (subdir, fn, testname)
86 yield lit.Test.Test(testSuite, testPath, localConfig,
90 testPath,testName = os.path.split(test.getSourcePath())
91 while not os.path.exists(testPath):
94 testPath, namePrefix = os.path.split(testPath)
97 cmd = [testPath, '--benchmark_filter=%s$' % testName ] + self.benchmark_args
/external/llvm/utils/lit/lit/formats/
Dgoogletest.py78 testPath = path_in_suite + (basename, testname)
79 yield lit.Test.Test(testSuite, testPath, localConfig, file_path=execpath)
104 testPath,testName = os.path.split(test.getSourcePath())
105 while not os.path.exists(testPath):
108 testPath, namePrefix = os.path.split(testPath)
111 cmd = [testPath, '--gtest_filter=' + testName]
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
Dctor.pass.cpp68 for (path const& testPath : testPaths) in TEST_CASE()
71 directory_iterator it(testPath, ec); in TEST_CASE()
76 directory_iterator it(testPath, opts, ec); in TEST_CASE()
81 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath)); in TEST_CASE()
82 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath, opts)); in TEST_CASE()
210 const path testPath = ""; in TEST_CASE() local
214 directory_iterator it(testPath, ec); in TEST_CASE()
221 const path testPath = "."; in TEST_CASE() local
224 directory_iterator it(testPath, ec); in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
Dctor.pass.cpp68 for (path const& testPath : testPaths) in TEST_CASE()
71 directory_iterator it(testPath, ec); in TEST_CASE()
76 directory_iterator it(testPath, opts, ec); in TEST_CASE()
81 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath)); in TEST_CASE()
82 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath, opts)); in TEST_CASE()
208 const path testPath = ""; in TEST_CASE() local
212 directory_iterator it(testPath, ec); in TEST_CASE()
219 const path testPath = "."; in TEST_CASE() local
222 directory_iterator it(testPath, ec); in TEST_CASE()
/external/icu/tools/testing/test_harness/src/com/android/icu/tradefed/testtype/
DICU4CTest.java226 StringBuilder testPath = new StringBuilder(DEFAULT_NATIVETEST_PATH); in getTestPath() local
228 testPath.append(FileListingService.FILE_SEPARATOR); in getTestPath()
229 testPath.append(mTestModule); in getTestPath()
231 return testPath.toString(); in getTestPath()
387 String testPath = getTestPath(); in run() local
388 if (!mDevice.doesFileExist(testPath)) { in run()
392 testPath, mDevice.getSerialNumber())); in run()
394 if (!isDeviceFileExecutable(testPath)) { in run()
398 testPath, mDevice.getSerialNumber())); in run()
403 runTest(mDevice, testPath, listener); in run()
/external/icu/icu4c/source/test/cintltst/
Dudatatst.c140 const char* testPath=loadTestData(&status); in TestUDataOpen() local
148 log_verbose("Testing udata_open(%s)\n", testPath); in TestUDataOpen()
149 result=udata_open(testPath, type, name, &status); in TestUDataOpen()
151 …data_open() failed for path = %s, name=%s, type=%s, \n errorcode=%s\n", testPath, name, type, myEr… in TestUDataOpen()
298 result = udata_open( testPath, "typ", "nam", &status); in TestUDataOpen()
300 …log_data_err("FAIL: udata_open( \"%s\", \"typ\", \"nam\") returned status %s\n", testPath, u_error… in TestUDataOpen()
363 strcat(longTestPath, testPath); in TestUDataOpen()
657 const char* testPath="testdata"; in TestUDataOpenChoiceDemo1() local
690 result=udata_openChoice(testPath, type, name[2], isAcceptable1, NULL, &status); in TestUDataOpenChoiceDemo1()
693 result=udata_openChoice(testPath, type, name[2], isAcceptable3, NULL, &status); in TestUDataOpenChoiceDemo1()
[all …]

12345