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

Method sectionEnded

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

Source from the content-addressed store, hash-verified

8636}
8637
8638void RunContext::sectionEnded(SectionEndInfo const &endInfo) {
8639 Counts assertions = m_totals.assertions - endInfo.prevAssertions;
8640 bool missingAssertions = testForMissingAssertions(assertions);
8641
8642 if (!m_activeSections.empty()) {
8643 m_activeSections.back()->close();
8644 m_activeSections.pop_back();
8645 }
8646
8647 m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions));
8648 m_messages.clear();
8649}
8650
8651void RunContext::sectionEndedEarly(SectionEndInfo const &endInfo) {
8652 if (m_unfinishedSections.empty())

Callers 3

runCurrentTestMethod · 0.45
~SectionMethod · 0.45

Calls 8

SectionStatsClass · 0.85
getFormattedDurationFunction · 0.85
showDurationsMethod · 0.80
scopedElementMethod · 0.80
emptyMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected