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

Method testForMissingAssertions

unittests/catch.hpp:8668–8678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8666 }
8667
8668 bool RunContext::testForMissingAssertions(Counts& assertions) {
8669 if (assertions.total() != 0)
8670 return false;
8671 if (!m_config->warnAboutMissingAssertions())
8672 return false;
8673 if (m_trackerContext.currentTracker().hasChildren())
8674 return false;
8675 m_totals.assertions.failed++;
8676 assertions.failed++;
8677 return true;
8678 }
8679
8680 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
8681 Counts assertions = m_totals.assertions - endInfo.prevAssertions;

Callers

nothing calls this directly

Calls 3

totalMethod · 0.80
hasChildrenMethod · 0.80

Tested by

no test coverage detected