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

Method LoadPackages

Source/CTest/cmParseMumpsCoverage.cxx:108–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool cmParseMumpsCoverage::LoadPackages(std::string const& d)
109{
110 cmsys::Glob glob;
111 glob.RecurseOn();
112 std::string pat = cmStrCat(d, "/*.m");
113 glob.FindFiles(pat);
114 for (std::string& file : glob.GetFiles()) {
115 std::string name = cmSystemTools::GetFilenameName(file);
116 name.erase(name.size() - 2);
117 this->RoutineToDirectory[name] = file;
118 // initialize each file, this is left out until CDash is fixed
119 // to handle large numbers of files
120 this->InitializeMumpsFile(file);
121 }
122 return true;
123}
124
125bool cmParseMumpsCoverage::FindMumpsFile(std::string const& routine,
126 std::string& filepath)

Callers 1

ReadCoverageFileMethod · 0.95

Calls 6

InitializeMumpsFileMethod · 0.95
FindFilesMethod · 0.80
eraseMethod · 0.80
cmStrCatFunction · 0.50
GetFilesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected