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

Method sectionStarted

unittests/catch.hpp:8653–8666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8651 }
8652
8653 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
8654 ITracker& sectionTracker = SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocation(sectionInfo.name, sectionInfo.lineInfo));
8655 if (!sectionTracker.isOpen())
8656 return false;
8657 m_activeSections.push_back(&sectionTracker);
8658
8659 m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
8660
8661 m_reporter->sectionStarting(sectionInfo);
8662
8663 assertions = m_totals.assertions;
8664
8665 return true;
8666 }
8667
8668 bool RunContext::testForMissingAssertions(Counts& assertions) {
8669 if (assertions.total() != 0)

Callers 1

SectionMethod · 0.80

Calls 3

NameAndLocationClass · 0.85
isOpenMethod · 0.80
sectionStartingMethod · 0.45

Tested by

no test coverage detected