MCPcopy Create free account
hub / github.com/cirquit/trdrop / loadTestNamesFromFile

Function loadTestNamesFromFile

ext/catch.hpp:5086–5100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

trimFunction · 0.85
startsWithFunction · 0.85
addTestOrTagsFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected