| 5084 | config.useColour = UseColour::Yes; |
| 5085 | } |
| 5086 | inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) { |
| 5087 | std::ifstream f( _filename.c_str() ); |
| 5088 | if( !f.is_open() ) |
| 5089 | throw std::domain_error( "Unable to load input file: " + _filename ); |
| 5090 | |
| 5091 | std::string line; |
| 5092 | while( std::getline( f, line ) ) { |
| 5093 | line = trim(line); |
| 5094 | if( !line.empty() && !startsWith( line, '#' ) ) { |
| 5095 | if( !startsWith( line, '"' ) ) |
| 5096 | line = '"' + line + '"'; |
| 5097 | addTestOrTags( config, line + ',' ); |
| 5098 | } |
| 5099 | } |
| 5100 | } |
| 5101 | |
| 5102 | inline Clara::CommandLine<ConfigData> makeCommandLineParser() { |
| 5103 |
nothing calls this directly
no test coverage detected