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

Function FileExists

Tools/Tool.cpp:171–177  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

169
170 //---------------------------------------------------------------------
171 bool FileExists(const std::filesystem::path& path)
172 {
173 std::error_code ignoredErrorCode;
174
175 // Error can happen when the drive is not ready (DVD for example).
176 return std::filesystem::exists(path, ignoredErrorCode);
177 }
178}

Callers 15

TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
CheckWarningInIndexMethod · 0.85
TEST_FFunction · 0.85
RunCoverageFunction · 0.85
TESTFunction · 0.85
ExportFileMethod · 0.85
StartMethod · 0.85
AddInputCoveragesFunction · 0.85
CheckPathExistsFunction · 0.85

Calls

no outgoing calls

Tested by 8

TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
CheckWarningInIndexMethod · 0.68
TEST_FFunction · 0.68
RunCoverageFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68