Function sectionStarted
Synopsis
#include <include/internal/catch_run_context.h>
bool sectionStarted(SectionInfo const §ionInfo, Counts &assertions) override
Description
No description yet.
Source
Lines 211-224 in include/internal/catch_run_context.cpp. Line 78 in include/internal/catch_run_context.h.
bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
ITracker& sectionTracker = SectionTracker::acquire(m_trackerContext, TestCaseTracking::NameAndLocation(sectionInfo.name, sectionInfo.lineInfo));
if (!sectionTracker.isOpen())
return false;
m_activeSections.push_back(§ionTracker);
m_lastAssertionInfo.lineInfo = sectionInfo.lineInfo;
m_reporter->sectionStarting(sectionInfo);
assertions = m_totals.assertions;
return true;
}