| 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(); |
nothing calls this directly
no test coverage detected