MCPcopy Create free account
hub / github.com/RenderKit/oidn / TestGroup

Method TestGroup

external/catch.hpp:13319–13335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected