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

Method GetPartFromName

Source/cmCTest.cxx:377–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377cmCTest::Part cmCTest::GetPartFromName(std::string const& name)
378{
379 // Look up by lower-case to make names case-insensitive.
380 std::string lower_name = cmSystemTools::LowerCase(name);
381 auto const i = this->Impl->PartMap.find(lower_name);
382 if (i != this->Impl->PartMap.end()) {
383 return i->second;
384 }
385
386 // The string does not name a valid part.
387 return PartCount;
388}
389
390void cmCTest::Initialize(std::string const& binary_dir)
391{

Callers 3

SetTestMethod · 0.95
InitializeHandlerMethod · 0.80
CheckArgumentsMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected