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

Method testForMissingAssertions

tutorials/external/catch.hpp:10456–10466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10454 }
10455
10456 bool RunContext::testForMissingAssertions(Counts& assertions) {
10457 if (assertions.total() != 0)
10458 return false;
10459 if (!m_config->warnAboutMissingAssertions())
10460 return false;
10461 if (m_trackerContext.currentTracker().hasChildren())
10462 return false;
10463 m_totals.assertions.failed++;
10464 assertions.failed++;
10465 return true;
10466 }
10467
10468 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
10469 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