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