• Home
  • Raw
  • Download

Lines Matching refs:vfs

22 class DummyFileSystem : public vfs::FileSystem {
25 std::map<std::string, vfs::Status> FilesAndDirs;
35 ErrorOr<vfs::Status> status(const Twine &Path) { in status()
36 std::map<std::string, vfs::Status>::iterator I = in status()
43 std::unique_ptr<vfs::File> &Result) { in openFileForRead()
53 struct DirIterImpl : public clang::vfs::detail::DirIterImpl {
54 std::map<std::string, vfs::Status> &FilesAndDirs;
55 std::map<std::string, vfs::Status>::iterator I;
65 DirIterImpl(std::map<std::string, vfs::Status> &FilesAndDirs, in DirIterImpl()
85 CurrentEntry = vfs::Status(); in increment()
90 vfs::directory_iterator dir_begin(const Twine &Dir, in dir_begin()
92 return vfs::directory_iterator( in dir_begin()
96 void addEntry(StringRef Path, const vfs::Status &Status) { in addEntry()
101 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addRegularFile()
107 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addDirectory()
113 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addSymlink()
122 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
155 ErrorOr<vfs::Status> Status2 = D->status("/foo"); in TEST()
162 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
165 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O(new vfs::OverlayFileSystem(D)); in TEST()
172 ErrorOr<vfs::Status> Status2((std::error_code())); in TEST()
182 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
183 new vfs::OverlayFileSystem(Base)); in TEST()
187 ErrorOr<vfs::Status> Status1((std::error_code())), in TEST()
220 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
221 new vfs::OverlayFileSystem(Lower)); in TEST()
228 ErrorOr<vfs::Status> Status1 = Lower->status("/lower-only"); in TEST()
230 ErrorOr<vfs::Status> Status2 = O->status("/lower-only"); in TEST()
245 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
246 new vfs::OverlayFileSystem(Lower)); in TEST()
249 ErrorOr<vfs::Status> Status((std::error_code())); in TEST()
292 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST()
295 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
297 EXPECT_EQ(vfs::directory_iterator(), I); // empty directory is empty in TEST()
306 ASSERT_NE(vfs::directory_iterator(), I); in TEST()
311 ASSERT_NE(vfs::directory_iterator(), I); in TEST()
314 EXPECT_EQ(vfs::directory_iterator(), I); in TEST()
319 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST()
322 auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC); in TEST()
324 EXPECT_EQ(vfs::recursive_directory_iterator(), I); // empty directory is empty in TEST()
331 I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC); in TEST()
333 ASSERT_NE(vfs::recursive_directory_iterator(), I); in TEST()
337 for (auto E = vfs::recursive_directory_iterator(); !EC && I != E; in TEST()
381 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
382 new vfs::OverlayFileSystem(Lower)); in TEST()
412 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
413 new vfs::OverlayFileSystem(Lower)); in TEST()
418 checkContents(vfs::recursive_directory_iterator(*O, "/", EC), in TEST()
422 checkContents(vfs::recursive_directory_iterator(*O, "/", EC), in TEST()
429 checkContents(vfs::recursive_directory_iterator(*O, "/", EC), in TEST()
445 checkContents(vfs::recursive_directory_iterator(*O, "/dir2", EC), in TEST()
451 checkContents(vfs::recursive_directory_iterator(*O, "/", EC), in TEST()
460 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
461 new vfs::OverlayFileSystem(Lower)); in TEST()
483 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST()
484 new vfs::OverlayFileSystem(Lower)); in TEST()
506 vfs::directory_iterator I = O->dir_begin("/", EC), E; in TEST()
515 vfs::directory_iterator I = O->dir_begin("/", EC), E; in TEST()
539 IntrusiveRefCntPtr<vfs::FileSystem>
541 IntrusiveRefCntPtr<vfs::FileSystem> ExternalFS) { in getFromYAMLRawString()
546 IntrusiveRefCntPtr<vfs::FileSystem> getFromYAMLString( in getFromYAMLString()
548 IntrusiveRefCntPtr<vfs::FileSystem> ExternalFS = new DummyFileSystem()) { in getFromYAMLString()
556 IntrusiveRefCntPtr<vfs::FileSystem> FS; in TEST_F()
569 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F()
591 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST_F()
592 new vfs::OverlayFileSystem(Lower)); in TEST_F()
596 ErrorOr<vfs::Status> S = O->status("//root/file1"); in TEST_F()
600 ErrorOr<vfs::Status> SLower = O->status("//root/foo/bar/a"); in TEST_F()
619 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F()
635 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST_F()
636 new vfs::OverlayFileSystem(Lower)); in TEST_F()
639 ErrorOr<vfs::Status> S = O->status("//root/XX"); in TEST_F()
642 ErrorOr<vfs::Status> SS = O->status("//root/xx"); in TEST_F()
655 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F()
671 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST_F()
672 new vfs::OverlayFileSystem(Lower)); in TEST_F()
675 ErrorOr<vfs::Status> SS = O->status("//root/xx"); in TEST_F()
688 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString("{]", Lower); in TEST_F()
779 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F()
831 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F()
874 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F()
895 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F()
918 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST_F()
919 new vfs::OverlayFileSystem(Lower)); in TEST_F()