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

Method InitializeHandler

Source/CTest/cmCTestCoverageCommand.cxx:19–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class cmMakefile;
18
19std::unique_ptr<cmCTestGenericHandler>
20cmCTestCoverageCommand::InitializeHandler(HandlerArguments& arguments,
21 cmExecutionStatus& status) const
22{
23 cmMakefile& mf = status.GetMakefile();
24 auto& args = static_cast<CoverageArguments&>(arguments);
25 this->CTest->SetCTestConfigurationFromCMakeVariable(
26 &mf, "CoverageCommand", "CTEST_COVERAGE_COMMAND", args.Quiet);
27 this->CTest->SetCTestConfigurationFromCMakeVariable(
28 &mf, "CoverageExtraFlags", "CTEST_COVERAGE_EXTRA_FLAGS", args.Quiet);
29 auto handler = cm::make_unique<cmCTestCoverageHandler>(this->CTest);
30
31 // If a LABELS option was given, select only files with the labels.
32 if (args.Labels) {
33 handler->SetLabelFilter(
34 std::set<std::string>(args.Labels->begin(), args.Labels->end()));
35 }
36
37 handler->SetQuiet(args.Quiet);
38 return std::unique_ptr<cmCTestGenericHandler>(std::move(handler));
39}
40
41bool cmCTestCoverageCommand::InitialPass(std::vector<std::string> const& args,
42 cmExecutionStatus& status) const

Callers

nothing calls this directly

Calls 7

moveFunction · 0.85
SetLabelFilterMethod · 0.80
GetMakefileMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
SetQuietMethod · 0.45

Tested by

no test coverage detected