MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / sectionEnded

Method sectionEnded

unittests/catch.hpp:8680–8691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8678 }
8679
8680 void RunContext::sectionEnded(SectionEndInfo const & endInfo) {
8681 Counts assertions = m_totals.assertions - endInfo.prevAssertions;
8682 bool missingAssertions = testForMissingAssertions(assertions);
8683
8684 if (!m_activeSections.empty()) {
8685 m_activeSections.back()->close();
8686 m_activeSections.pop_back();
8687 }
8688
8689 m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions));
8690 m_messages.clear();
8691 }
8692
8693 void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) {
8694 if (m_unfinishedSections.empty())

Callers 3

runCurrentTestMethod · 0.45
~SectionMethod · 0.45

Calls 9

SectionStatsClass · 0.85
getFormattedDurationFunction · 0.85
backMethod · 0.80
pop_backMethod · 0.80
showDurationsMethod · 0.80
scopedElementMethod · 0.80
emptyMethod · 0.45
closeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected