Function SectionTracker

Synopsis

#include <include/internal/catch_test_case_tracker.h>

SectionTracker(NameAndLocation const &nameAndLocation, TrackerContext &ctx, ITracker *parent)

Description

No description yet.

Source

Lines 174-185 in include/internal/catch_test_case_tracker.cpp. Line 154 in include/internal/catch_test_case_tracker.h.

SectionTracker::SectionTracker( NameAndLocation const& nameAndLocation, TrackerContext& ctx, ITracker* parent )
:   TrackerBase( nameAndLocation, ctx, parent ),
    m_trimmed_name(trim(nameAndLocation.name))
{
    if( parent ) {
        while( !parent->isSectionTracker() )
            parent = &parent->parent();
        SectionTracker& parentSection = static_cast<SectionTracker&>( *parent );
        addNextFilters( parentSection.m_filters );
    }
}





Add Discussion as Guest

Log in