MCPcopy Create free account
hub / github.com/apache/qpid-proton / testForMissingAssertions

Method testForMissingAssertions

tests/include/catch.hpp:12844–12854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12842 }
12843
12844 bool RunContext::testForMissingAssertions(Counts& assertions) {
12845 if (assertions.total() != 0)
12846 return false;
12847 if (!m_config->warnAboutMissingAssertions())
12848 return false;
12849 if (m_trackerContext.currentTracker().hasChildren())
12850 return false;
12851 m_totals.assertions.failed++;
12852 assertions.failed++;
12853 return true;
12854 }
12855
12856 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
12857 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