| 13321 | class TestGroup { |
| 13322 | public: |
| 13323 | explicit TestGroup(std::shared_ptr<Config> const& config) |
| 13324 | : m_config{config} |
| 13325 | , m_context{config, makeReporter(config)} |
| 13326 | { |
| 13327 | auto const& allTestCases = getAllTestCasesSorted(*m_config); |
| 13328 | m_matches = m_config->testSpec().matchesByFilter(allTestCases, *m_config); |
| 13329 | auto const& invalidArgs = m_config->testSpec().getInvalidArgs(); |
| 13330 | |
| 13331 | if (m_matches.empty() && invalidArgs.empty()) { |
| 13332 | for (auto const& test : allTestCases) |
| 13333 | if (!test.isHidden()) |
| 13334 | m_tests.emplace(&test); |
| 13335 | } else { |
| 13336 | for (auto const& match : m_matches) |
| 13337 | m_tests.insert(match.tests.begin(), match.tests.end()); |
| 13338 | } |
| 13339 | } |
| 13340 | |
| 13341 | Totals execute() { |
| 13342 | auto const& invalidArgs = m_config->testSpec().getInvalidArgs(); |
nothing calls this directly
no test coverage detected