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

Method GetLabelId

Source/CTest/cmCTestCoverageHandler.cxx:2117–2127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2115}
2116
2117int cmCTestCoverageHandler::GetLabelId(std::string const& label)
2118{
2119 auto i = this->LabelIdMap.find(label);
2120 if (i == this->LabelIdMap.end()) {
2121 int n = static_cast<int>(this->Labels.size());
2122 this->Labels.push_back(label);
2123 LabelIdMapType::value_type entry(label, n);
2124 i = this->LabelIdMap.insert(entry).first;
2125 }
2126 return i->second;
2127}
2128
2129void cmCTestCoverageHandler::LoadLabels()
2130{

Callers 2

LoadLabelsMethod · 0.95
SetLabelFilterMethod · 0.95

Calls 5

push_backMethod · 0.80
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected