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

Method GetTestModelFromString

Source/cmCTest.cxx:885–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885int cmCTest::GetTestModelFromString(std::string const& str)
886{
887 if (str.empty()) {
888 return cmCTest::EXPERIMENTAL;
889 }
890 std::string rstr = cmSystemTools::LowerCase(str);
891 if (cmHasLiteralPrefix(rstr, "cont")) {
892 return cmCTest::CONTINUOUS;
893 }
894 if (cmHasLiteralPrefix(rstr, "nigh")) {
895 return cmCTest::NIGHTLY;
896 }
897 return cmCTest::EXPERIMENTAL;
898}
899
900bool cmCTest::RunMakeCommand(std::string const& command, std::string& output,
901 int* retVal, char const* dir, cmDuration timeout,

Callers

nothing calls this directly

Calls 2

cmHasLiteralPrefixFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected