MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / Config

Method Config

unittests/catch.hpp:6711–6725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6709namespace Catch {
6710
6711 Config::Config( ConfigData const& data )
6712 : m_data( data ),
6713 m_stream( openStream() )
6714 {
6715 TestSpecParser parser(ITagAliasRegistry::get());
6716 if (data.testsOrTags.empty()) {
6717 parser.parse("~[.]"); // All not hidden tests
6718 }
6719 else {
6720 m_hasTestFilters = true;
6721 for( auto const& testOrTags : data.testsOrTags )
6722 parser.parse( testOrTags );
6723 }
6724 m_testSpec = parser.testSpec();
6725 }
6726
6727 std::string const& Config::getFilename() const {
6728 return m_data.outputFilename ;

Callers

nothing calls this directly

Calls 3

testSpecMethod · 0.80
emptyMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected