MCPcopy Create free account
hub / github.com/dblalock/bolt / loadTestNamesFromFile

Function loadTestNamesFromFile

cpp/quantize/catch.hpp:4042–4053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4040 : ShowDurations::Never;
4041 }
4042 inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) {
4043 std::ifstream f( _filename.c_str() );
4044 if( !f.is_open() )
4045 throw std::domain_error( "Unable to load input file: " + _filename );
4046
4047 std::string line;
4048 while( std::getline( f, line ) ) {
4049 line = trim(line);
4050 if( !line.empty() && !startsWith( line, "#" ) )
4051 addTestOrTags( config, "\"" + line + "\"," );
4052 }
4053 }
4054
4055 inline Clara::CommandLine<ConfigData> makeCommandLineParser() {
4056

Callers

nothing calls this directly

Calls 4

trimFunction · 0.70
startsWithFunction · 0.70
addTestOrTagsFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected