Function ~Section

Synopsis

#include <include/internal/catch_section.h>

~Section()

Description

No description yet.

Source

Lines 22-30 in include/internal/catch_section.cpp. Line 23 in include/internal/catch_section.h.

Section::~Section() {
    if( m_sectionIncluded ) {
        SectionEndInfo endInfo{ m_info, m_assertions, m_timer.getElapsedSeconds() };
        if( uncaught_exceptions() )
            getResultCapture().sectionEndedEarly( endInfo );
        else
            getResultCapture().sectionEnded( endInfo );
    }
}





Add Discussion as Guest

Log in