MCPcopy Create free account
hub / github.com/dirkvdb/ffmpegthumbnailer / loadTestNamesFromFile

Function loadTestNamesFromFile

test/testframework/catch.hpp:4688–4699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4686 config.useColour = UseColour::Yes;
4687 }
4688 inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) {
4689 std::ifstream f( _filename.c_str() );
4690 if( !f.is_open() )
4691 throw std::domain_error( "Unable to load input file: " + _filename );
4692
4693 std::string line;
4694 while( std::getline( f, line ) ) {
4695 line = trim(line);
4696 if( !line.empty() && !startsWith( line, "#" ) )
4697 addTestOrTags( config, "\"" + line + "\"," );
4698 }
4699 }
4700
4701 inline Clara::CommandLine<ConfigData> makeCommandLineParser() {
4702

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