MCPcopy Create free account
hub / github.com/apache/thrift / sectionStarted

Method sectionStarted

compiler/cpp/tests/catch/catch.hpp:6654–6671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6652 }
6653
6654 virtual bool sectionStarted (
6655 SectionInfo const& sectionInfo,
6656 Counts& assertions
6657 )
6658 {
6659 ITracker& sectionTracker = SectionTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( sectionInfo.name, sectionInfo.lineInfo ) );
6660 if( !sectionTracker.isOpen() )
6661 return false;
6662 m_activeSections.push_back( &sectionTracker );
6663
6664 m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
6665
6666 m_reporter->sectionStarting( sectionInfo );
6667
6668 assertions = m_totals.assertions;
6669
6670 return true;
6671 }
6672 bool testForMissingAssertions( Counts& assertions ) {
6673 if( assertions.total() != 0 )
6674 return false;

Callers 1

SectionMethod · 0.80

Calls 3

NameAndLocationClass · 0.85
isOpenMethod · 0.45
sectionStartingMethod · 0.45

Tested by

no test coverage detected