MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / CheckPathExists

Function CheckPathExists

CppCoverage/StartInfo.cpp:32–36  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

30 {
31 //-------------------------------------------------------------------------
32 void CheckPathExists(const std::string& context, const fs::path& path)
33 {
34 if (!Tools::FileExists(path))
35 throw std::runtime_error(context + " \"" + path.string() + "\" does not exist");
36 }
37 }
38
39 //-------------------------------------------------------------------------

Callers 1

SetWorkingDirectoryMethod · 0.85

Calls 1

FileExistsFunction · 0.85

Tested by

no test coverage detected