Function sectionEndedEarly

Synopsis

#include <include/internal/catch_run_context.h>

void sectionEndedEarly(SectionEndInfo const &endInfo) override

Description

No description yet.

Source

Lines 259-267 in include/internal/catch_run_context.cpp. Line 81 in include/internal/catch_run_context.h.

void RunContext::sectionEndedEarly(SectionEndInfo const & endInfo) {
    if (m_unfinishedSections.empty())
        m_activeSections.back()->fail();
    else
        m_activeSections.back()->close();
    m_activeSections.pop_back();
    m_unfinishedSections.push_back(endInfo);
}





Add Discussion as Guest

Log in