MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / testForMissingAssertions

Method testForMissingAssertions

Bcore/src/main/cpp/Dobby/tests/catch.hpp:8626–8636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8624}
8625
8626bool RunContext::testForMissingAssertions(Counts &assertions) {
8627 if (assertions.total() != 0)
8628 return false;
8629 if (!m_config->warnAboutMissingAssertions())
8630 return false;
8631 if (m_trackerContext.currentTracker().hasChildren())
8632 return false;
8633 m_totals.assertions.failed++;
8634 assertions.failed++;
8635 return true;
8636}
8637
8638void RunContext::sectionEnded(SectionEndInfo const &endInfo) {
8639 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