MCPcopy Create free account
hub / github.com/RenderKit/oidn / testForMissingAssertions

Method testForMissingAssertions

external/catch.hpp:12833–12843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12831 }
12832
12833 bool RunContext::testForMissingAssertions(Counts& assertions) {
12834 if (assertions.total() != 0)
12835 return false;
12836 if (!m_config->warnAboutMissingAssertions())
12837 return false;
12838 if (m_trackerContext.currentTracker().hasChildren())
12839 return false;
12840 m_totals.assertions.failed++;
12841 assertions.failed++;
12842 return true;
12843 }
12844
12845 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
12846 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