MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TestGroup

Method TestGroup

Source/ThirdParty/catch2/catch.hpp:13323–13339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected