MCPcopy Create free account
hub / github.com/apache/trafficserver / execute

Method execute

lib/catch2/catch.hpp:13348–13373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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