Function Config

Summary

#include <include/internal/catch_config.hpp>

(1) Config()=default

(2) Config(ConfigData const &data)

Function overload

Synopsis

#include <include/internal/catch_config.hpp>

Config()=default

Description

No description yet.

Source

Line 77 in include/internal/catch_config.hpp.

Synopsis

#include <include/internal/catch_config.hpp>

Config(ConfigData const &data)

Description

No description yet.

Source

Lines 14-37 in include/internal/catch_config.cpp. Line 78 in include/internal/catch_config.hpp.

Config::Config( ConfigData const& data )
:   m_data( data ),
    m_stream( openStream() )
{
    // We need to trim filter specs to avoid trouble with superfluous
    // whitespace (esp. important for bdd macros, as those are manually
    // aligned with whitespace).
    for (auto& elem : m_data.testsOrTags) {
        elem = trim(elem);
    }
    for (auto& elem : m_data.sectionsToRun) {
        elem = trim(elem);
    }
    TestSpecParser parser(ITagAliasRegistry::get());
    if (!m_data.testsOrTags.empty()) {
        m_hasTestFilters = true;
        for (auto const& testOrTags : m_data.testsOrTags) {
            parser.parse(testOrTags);
        }
    }
    m_testSpec = parser.testSpec();
}





Add Discussion as Guest

Log in