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

Method execute

Source/ThirdParty/catch2/catch.hpp:13341–13366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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