MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / execute

Method execute

extern/Catch2/catch.hpp:13346–13371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13344 }
13345
13346 Totals execute() {
13347 auto const& invalidArgs = m_config->testSpec().getInvalidArgs();
13348 Totals totals;
13349 m_context.testGroupStarting(m_config->name(), 1, 1);
13350 for (auto const& testCase : m_tests) {
13351 if (!m_context.aborting())
13352 totals += m_context.runTest(*testCase);
13353 else
13354 m_context.reporter().skipTest(*testCase);
13355 }
13356
13357 for (auto const& match : m_matches) {
13358 if (match.tests.empty()) {
13359 m_context.reporter().noMatchingTestCases(match.name);
13360 totals.error = -1;
13361 }
13362 }
13363
13364 if (!invalidArgs.empty()) {
13365 for (auto const& invalidArg: invalidArgs)
13366 m_context.reporter().reportInvalidArguments(invalidArg);
13367 }
13368
13369 m_context.testGroupEnded(m_config->name(), totals, 1, 1);
13370 return totals;
13371 }
13372
13373 private:
13374 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