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