MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / sectionEnded

Method sectionEnded

extern/Catch2/catch.hpp:12854–12866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12852 }
12853
12854 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
12855 Counts assertions = m_totals.assertions - endInfo.prevAssertions;
12856 bool missingAssertions = testForMissingAssertions(assertions);
12857
12858 if (!m_activeSections.empty()) {
12859 m_activeSections.back()->close();
12860 m_activeSections.pop_back();
12861 }
12862
12863 m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions));
12864 m_messages.clear();
12865 m_messageScopes.clear();
12866 }
12867
12868 void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) {
12869 if (m_unfinishedSections.empty())

Callers 3

catch.hppFile · 0.45
~SectionMethod · 0.45

Calls 9

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

Tested by

no test coverage detected