MCPcopy Create free account
hub / github.com/GANGE666/xVMP / status

Method status

src/unittests/Support/VirtualFileSystemTest.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

make_error_codeFunction · 0.70
findMethod · 0.45
strMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected