iaux::iaTest Class Referenceabstract

#include <iaTest.h>

Public Member Functions

virtual void run ()=0
 
virtual const char * getGroupName ()=0
 
virtual const char * getName ()=0
 
virtual const char * getLocation ()=0
 
bool success ()
 

Static Public Member Functions

static void initTests (int argc, char **argv)
 
static int runTests ()
 

Static Protected Member Functions

static void registerTest (iaTest *test)
 

Protected Attributes

bool _ok = true
 

Static Protected Attributes

static std::map< std::string, std::vector< iaTest * > > _tests
 
static bool _stopOnError = false
 
static bool _useFilter = false
 
static std::string _filter
 
static bool _verbose = false
 

Detailed Description

igor aux testing

Member Function Documentation

◆ getGroupName()

virtual const char * iaux::iaTest::getGroupName ( )
pure virtual
Returns
group name of test

◆ getLocation()

virtual const char * iaux::iaTest::getLocation ( )
pure virtual
Returns
location of test in code

◆ getName()

virtual const char * iaux::iaTest::getName ( )
pure virtual
Returns
name of test

◆ initTests()

void iaux::iaTest::initTests ( int  argc,
char **  argv 
)
static

initializes testing

Parameters
argccli argc
argvcli argv

◆ registerTest()

void iaux::iaTest::registerTest ( iaTest test)
staticprotected

registers individual test to testing list

Parameters
testthe test to add

◆ run()

virtual void iaux::iaTest::run ( )
pure virtual

run individual test

◆ runTests()

int iaux::iaTest::runTests ( )
static

runs the tests according to initialisation parameters

◆ success()

bool iaux::iaTest::success ( )
inline
Returns
true if this individual test was successful

Member Data Documentation

◆ _filter

std::string iaux::iaTest::_filter
staticprotected

filter to use

◆ _ok

bool iaux::iaTest::_ok = true
protected

if true this test was successful

◆ _stopOnError

bool iaux::iaTest::_stopOnError = false
staticprotected

if true stop testing on first error

◆ _tests

std::map< std::string, std::vector< iaTest * > > iaux::iaTest::_tests
staticprotected

the list of registred tests

◆ _useFilter

bool iaux::iaTest::_useFilter = false
staticprotected

if true use filter to search for tests

◆ _verbose

bool iaux::iaTest::_verbose = false
staticprotected

if true output is more verbose


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