Class ITracker

Synopsis

#include <include/internal/catch_test_case_tracker.h>

class  ITracker

Description

No description yet.

Inheritance

Decsendents: TrackerBase

Methods

ITracker
~ITracker
addChild
close
fail
findChild
hasChildren
hasStarted
isComplete
isGeneratorTracker
isOpen
isSectionTracker
isSuccessfullyCompleted
markAsNeedingAnotherRun
nameAndLocation
openChild
parent

Source

Lines 36-74 in include/internal/catch_test_case_tracker.h.

class  ITracker {
    NameAndLocation m_nameAndLocation;
public:
    ITracker(NameAndLocation const& nameAndLoc) :
        m_nameAndLocation(nameAndLoc)
    {}
    // static queries
    NameAndLocation const& nameAndLocation() const {
        return m_nameAndLocation;
    }
    virtual ~ITracker();
    // dynamic queries
    virtual bool isComplete() const = 0; // Successfully completed or failed
    virtual bool isSuccessfullyCompleted() const = 0;
    virtual bool isOpen() const = 0; // Started but not complete
    virtual bool hasChildren() const = 0;
    virtual bool hasStarted() const = 0;
    virtual ITracker& parent() = 0;
    // actions
    virtual void close() = 0; // Successfully complete
    virtual void fail() = 0;
    virtual void markAsNeedingAnotherRun() = 0;
    virtual void addChild( ITrackerPtr const& child ) = 0;
    virtual ITrackerPtr findChild( NameAndLocation const& nameAndLocation ) = 0;
    virtual void openChild() = 0;
    // Debug/ checking
    virtual bool isSectionTracker() const = 0;
    virtual bool isGeneratorTracker() const = 0;
};





Add Discussion as Guest

Log in