| 53 | DummyFileSystem() : FSID(getNextFSID()), FileID(0) {} |
| 54 | |
| 55 | ErrorOr<vfs::Status> status(const Twine &Path) override { |
| 56 | std::map<std::string, vfs::Status>::iterator I = |
| 57 | FilesAndDirs.find(Path.str()); |
| 58 | if (I == FilesAndDirs.end()) |
| 59 | return make_error_code(llvm::errc::no_such_file_or_directory); |
| 60 | return I->second; |
| 61 | } |
| 62 | ErrorOr<std::unique_ptr<vfs::File>> |
| 63 | openFileForRead(const Twine &Path) override { |
| 64 | auto S = status(Path); |
nothing calls this directly
no test coverage detected