Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
geo::details::TestTrackerClassBase Class Referenceabstract

Class telling whether a test needs to be run. More...

#include <GeometryTestAlg.h>

Public Types

using TestList_t = std::set< std::string >
 

Public Member Functions

virtual ~TestTrackerClassBase ()=default
 
virtual bool ShouldRun (std::string test_name) const =0
 Returns whether the specified test should run. More...
 
bool operator() (std::string test_name)
 Checks the test and records the request. More...
 
virtual void PleaseRunAlso (std::string test_name)=0
 Allow the specified test to run. More...
 
TestList_t const & RunTests () const
 Returns the tests that have been run. More...
 
TestList_t const & SkippedTests () const
 Returns the tests that have been skipped. More...
 
TestList_t QueriedTests () const
 Returns the tests that have been queried. More...
 
virtual bool CheckQueriesRegistry () const
 Checks that the validity of the configuration (after the fact) More...
 
virtual void PrintConfiguration (std::ostream &) const
 Prints information about the configuration of the filter. More...
 

Protected Member Functions

virtual void RecordRequest (std::string test_name, bool bRun)
 
virtual bool Query (std::string test_name)
 Checks the test and records the request. More...
 

Static Protected Member Functions

static void CopyList (TestList_t &dest, std::vector< std::string > const &from)
 Adds a vector of tests into a test set. More...
 

Protected Attributes

TestList_t run
 requested tests that should be run More...
 
TestList_t skipped
 requested tests that should be skipped More...
 

Detailed Description

Class telling whether a test needs to be run.

Definition at line 249 of file GeometryTestAlg.h.

Member Typedef Documentation

Definition at line 251 of file GeometryTestAlg.h.

Constructor & Destructor Documentation

virtual geo::details::TestTrackerClassBase::~TestTrackerClassBase ( )
virtualdefault

Member Function Documentation

virtual bool geo::details::TestTrackerClassBase::CheckQueriesRegistry ( ) const
virtual

Checks that the validity of the configuration (after the fact)

static void geo::details::TestTrackerClassBase::CopyList ( TestList_t dest,
std::vector< std::string > const &  from 
)
staticprotected

Adds a vector of tests into a test set.

bool geo::details::TestTrackerClassBase::operator() ( std::string  test_name)

Checks the test and records the request.

virtual void geo::details::TestTrackerClassBase::PleaseRunAlso ( std::string  test_name)
pure virtual

Allow the specified test to run.

virtual void geo::details::TestTrackerClassBase::PrintConfiguration ( std::ostream &  ) const
virtual

Prints information about the configuration of the filter.

TestList_t geo::details::TestTrackerClassBase::QueriedTests ( ) const

Returns the tests that have been queried.

virtual bool geo::details::TestTrackerClassBase::Query ( std::string  test_name)
protectedvirtual

Checks the test and records the request.

virtual void geo::details::TestTrackerClassBase::RecordRequest ( std::string  test_name,
bool  bRun 
)
protectedvirtual
TestList_t const& geo::details::TestTrackerClassBase::RunTests ( ) const
inline

Returns the tests that have been run.

Definition at line 265 of file GeometryTestAlg.h.

265 { return run; }
TestList_t run
requested tests that should be run
virtual bool geo::details::TestTrackerClassBase::ShouldRun ( std::string  test_name) const
pure virtual

Returns whether the specified test should run.

TestList_t const& geo::details::TestTrackerClassBase::SkippedTests ( ) const
inline

Returns the tests that have been skipped.

Definition at line 268 of file GeometryTestAlg.h.

268 { return skipped; }
TestList_t skipped
requested tests that should be skipped

Member Data Documentation

TestList_t geo::details::TestTrackerClassBase::run
protected

requested tests that should be run

Definition at line 280 of file GeometryTestAlg.h.

TestList_t geo::details::TestTrackerClassBase::skipped
protected

requested tests that should be skipped

Definition at line 281 of file GeometryTestAlg.h.


The documentation for this class was generated from the following file: