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

Method IsFilteredOut

Source/CTest/cmCTestCoverageHandler.cxx:2223–2238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2221}
2222
2223bool cmCTestCoverageHandler::IsFilteredOut(std::string const& source)
2224{
2225 // If there is no label filter then nothing is filtered out.
2226 if (this->LabelFilter.empty()) {
2227 return false;
2228 }
2229
2230 // The source is filtered out if it does not have any labels in
2231 // common with the filter set.
2232 std::string shortSrc = this->CTest->GetShortPathToFile(source);
2233 auto li = this->SourceLabels.find(shortSrc);
2234 if (li != this->SourceLabels.end()) {
2235 return !this->IntersectsFilter(li->second);
2236 }
2237 return true;
2238}
2239
2240std::set<std::string> cmCTestCoverageHandler::FindUncoveredFiles(
2241 cmCTestCoverageHandlerContainer* cont)

Callers 1

ShouldIDoCoverageMethod · 0.95

Calls 5

IntersectsFilterMethod · 0.95
GetShortPathToFileMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected