MCPcopy Create free account
hub / github.com/apache/trafficserver / TestGroup

Method TestGroup

lib/catch2/catch.hpp:13330–13346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13328 class TestGroup {
13329 public:
13330 explicit TestGroup(std::shared_ptr<Config> const& config)
13331 : m_config{config}
13332 , m_context{config, makeReporter(config)}
13333 {
13334 auto const& allTestCases = getAllTestCasesSorted(*m_config);
13335 m_matches = m_config->testSpec().matchesByFilter(allTestCases, *m_config);
13336 auto const& invalidArgs = m_config->testSpec().getInvalidArgs();
13337
13338 if (m_matches.empty() && invalidArgs.empty()) {
13339 for (auto const& test : allTestCases)
13340 if (!test.isHidden())
13341 m_tests.emplace(&test);
13342 } else {
13343 for (auto const& match : m_matches)
13344 m_tests.insert(match.tests.begin(), match.tests.end());
13345 }
13346 }
13347
13348 Totals execute() {
13349 auto const& invalidArgs = m_config->testSpec().getInvalidArgs();

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected