MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / testForMissingAssertions

Method testForMissingAssertions

tests/catch.hpp:10195–10205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10193 }
10194
10195 bool RunContext::testForMissingAssertions(Counts& assertions) {
10196 if (assertions.total() != 0)
10197 return false;
10198 if (!m_config->warnAboutMissingAssertions())
10199 return false;
10200 if (m_trackerContext.currentTracker().hasChildren())
10201 return false;
10202 m_totals.assertions.failed++;
10203 assertions.failed++;
10204 return true;
10205 }
10206
10207 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
10208 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