Lines Matching refs:path
47 std::string root_fs(root.path()); in TEST()
69 llvm::SmallString<128> aaa(file_root.path()); in TEST()
70 llvm::sys::path::append(aaa, "aaa"); in TEST()
73 llvm::SmallString<128> bbb(file_root.path()); in TEST()
74 llvm::sys::path::append(bbb, "bbb"); in TEST()
77 llvm::SmallString<128> ccc(file_root.path()); in TEST()
78 llvm::sys::path::append(ccc, "ccc"); in TEST()
81 std::string root_fs(file_root.path()); in TEST()
84 FileCollector.addDirectory(file_root.path()); in TEST()
90 EXPECT_TRUE(FileCollector.hasSeen(a.path())); in TEST()
91 EXPECT_TRUE(FileCollector.hasSeen(b.path())); in TEST()
92 EXPECT_TRUE(FileCollector.hasSeen(c.path())); in TEST()
95 llvm::SmallString<128> ddd(file_root.path()); in TEST()
96 llvm::sys::path::append(ddd, "ddd"); in TEST()
98 EXPECT_FALSE(FileCollector.hasSeen(d.path())); in TEST()
103 TempFile a(file_root.path("aaa")); in TEST()
104 TempFile b(file_root.path("bbb")); in TEST()
105 TempFile c(file_root.path("ccc")); in TEST()
109 std::string root_fs(root.path()); in TEST()
111 FileCollector.addFile(a.path()); in TEST()
112 FileCollector.addFile(b.path()); in TEST()
113 FileCollector.addFile(c.path()); in TEST()
131 TempDir subdir(file_root.path("subdir")); in TEST()
132 TempDir subdir2(file_root.path("subdir2")); in TEST()
133 TempFile a(subdir2.path("a")); in TEST()
137 std::string root_fs(root.path()); in TEST()
139 FileCollector.addFile(a.path()); in TEST()
142 EXPECT_TRUE(FileCollector.hasSeen(a.path())); in TEST()
143 EXPECT_FALSE(FileCollector.hasSeen(subdir.path())); in TEST()
145 FileCollector.addFile(subdir.path()); in TEST()
146 EXPECT_TRUE(FileCollector.hasSeen(subdir.path())); in TEST()
152 llvm::SmallString<128> SubdirInRoot = root.path(); in TEST()
153 llvm::sys::path::append(SubdirInRoot, in TEST()
154 llvm::sys::path::relative_path(subdir.path())); in TEST()
162 TempDir subdir(file_root.path("subdir")); in TEST()
163 TempDir subdir2(file_root.path("subdir2")); in TEST()
164 TempFile a(subdir2.path("a")); in TEST()
165 TempFile b(file_root.path("b")); in TEST()
166 TempDir subdir3(file_root.path("subdir3")); in TEST()
167 TempFile subdir3a(subdir3.path("aa")); in TEST()
168 TempDir subdir3b(subdir3.path("subdirb")); in TEST()
169 { TempFile subdir3fileremoved(subdir3.path("removed")); } in TEST()
173 std::string root_fs(root.path()); in TEST()
177 VFS->status(a.path()); in TEST()
178 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
180 VFS->openFileForRead(b.path()); in TEST()
181 EXPECT_TRUE(Collector->hasSeen(b.path())); in TEST()
183 VFS->status(subdir.path()); in TEST()
184 EXPECT_TRUE(Collector->hasSeen(subdir.path())); in TEST()
188 auto It = VFS->dir_begin(subdir3.path(), EC); in TEST()
190 EXPECT_TRUE(Collector->hasSeen(subdir3.path())); in TEST()
191 EXPECT_TRUE(Collector->hasSeen(subdir3a.path())); in TEST()
192 EXPECT_TRUE(Collector->hasSeen(subdir3b.path())); in TEST()
193 std::string RemovedFileName((Twine(subdir3.path("removed"))).str()); in TEST()
204 TempFile a(file_root.path("aaa")); in TEST()
205 TempFile b(file_root.path("bbb")); in TEST()
206 TempFile c(file_root.path("ccc")); in TEST()
209 TempDir foo(file_root.path("foo")); in TEST()
210 TempFile d(foo.path("ddd")); in TEST()
213 TempFile e(foo.path("../eee")); in TEST()
216 TempLink symlink(file_root.path("foo"), file_root.path("bar")); in TEST()
220 std::string root_fs(reproducer_root.path()); in TEST()
224 FileCollector.addFile(a.path()); in TEST()
225 FileCollector.addFile(b.path()); in TEST()
226 FileCollector.addFile(c.path()); in TEST()
227 FileCollector.addFile(d.path()); in TEST()
228 FileCollector.addFile(e.path()); in TEST()
229 FileCollector.addFile(file_root.path() + "/bar/ddd"); in TEST()
235 std::string vpath = (file_root.path() + "/aaa").str(); in TEST()
237 (reproducer_root.path() + file_root.path() + "/aaa").str(); in TEST()
244 std::string vpath = (file_root.path() + "/bar/ddd").str(); in TEST()
246 (reproducer_root.path() + file_root.path() + "/foo/ddd").str(); in TEST()
253 std::string vpath = (file_root.path() + "/eee").str(); in TEST()
255 (reproducer_root.path() + file_root.path() + "/eee").str(); in TEST()
263 TempFile a(file_root.path("a")); in TEST()
264 TempLink symlink(file_root.path("a"), file_root.path("b")); in TEST()
268 std::string root_fs(root.path()); in TEST()
273 VFS->getRealPath(symlink.path(), Output); in TEST()
274 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
275 EXPECT_TRUE(Collector->hasSeen(symlink.path())); in TEST()