MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / TestGroup

Method TestGroup

extlibs/catch/include/catch/catch.hpp:12698–12713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12696 class TestGroup {
12697 public:
12698 explicit TestGroup(std::shared_ptr<Config> const& config)
12699 : m_config{config}
12700 , m_context{config, makeReporter(config)}
12701 {
12702 auto const& allTestCases = getAllTestCasesSorted(*m_config);
12703 m_matches = m_config->testSpec().matchesByFilter(allTestCases, *m_config);
12704
12705 if (m_matches.empty()) {
12706 for (auto const& test : allTestCases)
12707 if (!test.isHidden())
12708 m_tests.emplace(&test);
12709 } else {
12710 for (auto const& match : m_matches)
12711 m_tests.insert(match.tests.begin(), match.tests.end());
12712 }
12713 }
12714
12715 Totals execute() {
12716 Totals totals;

Callers

nothing calls this directly

Calls 9

makeReporterFunction · 0.85
matchesByFilterMethod · 0.80
testSpecMethod · 0.80
isHiddenMethod · 0.80
emptyMethod · 0.45
emplaceMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected