MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / testForMissingAssertions

Method testForMissingAssertions

extlibs/catch/include/catch/catch.hpp:12223–12233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12221 }
12222
12223 bool RunContext::testForMissingAssertions(Counts& assertions) {
12224 if (assertions.total() != 0)
12225 return false;
12226 if (!m_config->warnAboutMissingAssertions())
12227 return false;
12228 if (m_trackerContext.currentTracker().hasChildren())
12229 return false;
12230 m_totals.assertions.failed++;
12231 assertions.failed++;
12232 return true;
12233 }
12234
12235 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
12236 Counts assertions = m_totals.assertions - endInfo.prevAssertions;

Callers

nothing calls this directly

Calls 3

hasChildrenMethod · 0.80
totalMethod · 0.45

Tested by

no test coverage detected