| 17 | class cmMakefile; |
| 18 | |
| 19 | std::unique_ptr<cmCTestGenericHandler> |
| 20 | cmCTestCoverageCommand::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 | |
| 41 | bool cmCTestCoverageCommand::InitialPass(std::vector<std::string> const& args, |
| 42 | cmExecutionStatus& status) const |
nothing calls this directly
no test coverage detected