---------------------------------------------------------------------
| 69 | |
| 70 | //--------------------------------------------------------------------- |
| 71 | boost::optional<cov::Options> Parse( |
| 72 | const cov::OptionsParser& parser, |
| 73 | const std::vector<std::string>& arguments, |
| 74 | bool appendProgramToRun, |
| 75 | std::wostream* emptyOptionsExplanation) |
| 76 | { |
| 77 | std::vector<const char*> argv; |
| 78 | |
| 79 | argv.push_back("programName"); |
| 80 | for (const auto& argument : arguments) |
| 81 | argv.push_back(argument.c_str()); |
| 82 | |
| 83 | auto programToRun = GetProgramToRun(); |
| 84 | if (appendProgramToRun) |
| 85 | argv.push_back(programToRun.c_str()); |
| 86 | return parser.Parse(static_cast<int>(argv.size()), &argv[0], emptyOptionsExplanation); |
| 87 | } |
| 88 | |
| 89 | const std::string GetOptionPrefix() { return "--"; } |
| 90 | const std::string GetProgramToRun() { return TestCoverageConsole::GetOutputBinaryPath().string(); } |
no test coverage detected