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

Method sectionStarted

test/expected/catch.hpp:12604–12617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12602 }
12603
12604 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
12605 ITracker& sectionTracker = SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocation(sectionInfo.name, sectionInfo.lineInfo));
12606 if (!sectionTracker.isOpen())
12607 return false;
12608 m_activeSections.push_back(&sectionTracker);
12609
12610 m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
12611
12612 m_reporter->sectionStarting(sectionInfo);
12613
12614 assertions = m_totals.assertions;
12615
12616 return true;
12617 }
12618 auto RunContext::acquireGeneratorTracker( SourceLineInfo const& lineInfo ) -> IGeneratorTracker& {
12619 using namespace Generators;
12620 GeneratorTracker& tracker = GeneratorTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( "generator", lineInfo ) );

Callers 1

SectionMethod · 0.80

Calls 3

NameAndLocationClass · 0.85
isOpenMethod · 0.80
sectionStartingMethod · 0.45

Tested by

no test coverage detected