| 40 | } |
| 41 | |
| 42 | test::OptionsReaderAndMessages test::parseCommandLineAndReadInputFiles( |
| 43 | std::vector<std::string> const& _commandLine, |
| 44 | std::string const& _standardInputContent |
| 45 | ) |
| 46 | { |
| 47 | std::vector<char const*> argv = makeArgv(_commandLine); |
| 48 | std::stringstream sin(_standardInputContent), sout, serr; |
| 49 | CommandLineInterface cli(sin, sout, serr); |
| 50 | bool success = cli.parseArguments(static_cast<int>(_commandLine.size()), argv.data()); |
| 51 | cli.readInputFiles(); |
| 52 | |
| 53 | return { |
| 54 | success, |
| 55 | cli.options(), |
| 56 | cli.fileReader(), |
| 57 | cli.standardJsonInput(), |
| 58 | sout.str(), |
| 59 | stripPreReleaseWarning(serr.str()), |
| 60 | }; |
| 61 | } |
| 62 | |
| 63 | test::OptionsReaderAndMessages test::runCLI( |
| 64 | std::vector<std::string> const& _commandLine, |
nothing calls this directly
no test coverage detected