MCPcopy Create free account
hub / github.com/catchorg/Catch2 / execute

Method execute

extras/catch_amalgamated.cpp:1272–1289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1270 }
1271
1272 Totals execute() {
1273 Totals totals;
1274 for (auto const& testCase : m_tests) {
1275 if (!m_context.aborting())
1276 totals += m_context.runTest(*testCase);
1277 else
1278 m_reporter->skipTest(testCase->getTestCaseInfo());
1279 }
1280
1281 for (auto const& match : m_matches) {
1282 if (match.tests.empty()) {
1283 m_unmatchedTestSpecs = true;
1284 m_reporter->noMatchingTestCases( match.name );
1285 }
1286 }
1287
1288 return totals;
1289 }
1290
1291 bool hadUnmatchedTestSpecs() const {
1292 return m_unmatchedTestSpecs;

Callers 1

runInternalMethod · 0.45

Calls 5

abortingMethod · 0.45
runTestMethod · 0.45
skipTestMethod · 0.45
emptyMethod · 0.45
noMatchingTestCasesMethod · 0.45

Tested by

no test coverage detected