CUTB
Static Public Member Functions | List of all members
cutb::TestManager Class Reference

API class used in CUTB simple framework. More...

Static Public Member Functions

static bool seekTest (size_t idx)
 Makes the current test move to the test corresponding to the idx. More...
 
static bool advanceTest ()
 Makes the current test move to the next test. More...
 
static void runTest ()
 Runs the current test.
 
static const char * currentTestname ()
 
static const char * currentFilepath ()
 
static int currentLineno ()
 

Detailed Description

API class used in CUTB simple framework.

Member Function Documentation

static bool cutb::TestManager::advanceTest ( )
static

Makes the current test move to the next test.

When the current test is the last test, the advancement fails and false is returned.

Returns
whether the advancement succeeded or not.
static const char* cutb::TestManager::currentFilepath ( )
static
Returns
the file path of the current test.
static int cutb::TestManager::currentLineno ( )
static
Returns
the line number of the current test.
static const char* cutb::TestManager::currentTestname ( )
static
Returns
the test name of the current test.
static bool cutb::TestManager::seekTest ( size_t  idx)
static

Makes the current test move to the test corresponding to the idx.

If idx is out of the test index range, the seeking fails and false is returned.

Parameters
idxindex of the test to seek to
Returns
whether the seeking succeeded or not

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