MCPcopy Create free account
hub / github.com/Kitware/CMake / CleanCoverageLogFiles

Method CleanCoverageLogFiles

Source/CTest/cmCTestCoverageHandler.cxx:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void cmCTestCoverageHandler::CleanCoverageLogFiles(std::ostream& log)
45{
46 std::string logGlob =
47 cmStrCat(this->CTest->GetCTestConfiguration("BuildDirectory"), "/Testing/",
48 this->CTest->GetCurrentTag(), "/CoverageLog*");
49 cmsys::Glob gl;
50 gl.FindFiles(logGlob);
51 std::vector<std::string> const& files = gl.GetFiles();
52 for (std::string const& f : files) {
53 log << "Removing old coverage log: " << f << "\n";
54 cmSystemTools::RemoveFile(f);
55 }
56}
57
58bool cmCTestCoverageHandler::StartCoverageLogFile(
59 cmGeneratedFileStream& covLogFile, int logFileCount)

Callers 1

ProcessHandlerMethod · 0.95

Calls 5

GetCTestConfigurationMethod · 0.80
GetCurrentTagMethod · 0.80
FindFilesMethod · 0.80
cmStrCatFunction · 0.50
GetFilesMethod · 0.45

Tested by

no test coverage detected