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

Method execute

external/catch.hpp:13337–13362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13335 }
13336
13337 Totals execute() {
13338 auto const& invalidArgs = m_config->testSpec().getInvalidArgs();
13339 Totals totals;
13340 m_context.testGroupStarting(m_config->name(), 1, 1);
13341 for (auto const& testCase : m_tests) {
13342 if (!m_context.aborting())
13343 totals += m_context.runTest(*testCase);
13344 else
13345 m_context.reporter().skipTest(*testCase);
13346 }
13347
13348 for (auto const& match : m_matches) {
13349 if (match.tests.empty()) {
13350 m_context.reporter().noMatchingTestCases(match.name);
13351 totals.error = -1;
13352 }
13353 }
13354
13355 if (!invalidArgs.empty()) {
13356 for (auto const& invalidArg: invalidArgs)
13357 m_context.reporter().reportInvalidArguments(invalidArg);
13358 }
13359
13360 m_context.testGroupEnded(m_config->name(), totals, 1, 1);
13361 return totals;
13362 }
13363
13364 private:
13365 using Tests = std::set<TestCase const*>;

Callers 1

runInternalMethod · 0.45

Calls 10

testSpecMethod · 0.80
abortingMethod · 0.80
runTestMethod · 0.80
testGroupStartingMethod · 0.45
nameMethod · 0.45
skipTestMethod · 0.45
emptyMethod · 0.45
noMatchingTestCasesMethod · 0.45
testGroupEndedMethod · 0.45

Tested by

no test coverage detected