HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_TestManager Class Referenceabstract

#include <UT_TestManager.h>

Public Member Functions

 UT_TestManager ()
 
virtual ~UT_TestManager ()
 
virtual bool isInteractive () const =0
 Determine if the test was interactively invoked. More...
 
virtual bool isPerformance () const =0
 Determine if the tests are being run for performance. More...
 
virtual int numThreads () const =0
 Determine the number of threads requested. More...
 
virtual int run (int argc, char *argv[])=0
 Called by main() to run the tests. Returns the number of test failures. More...
 
virtual void addTest (const char *name, UT_Functor< bool > &callback)=0
 
virtual void logResult (const char *name, bool success, fpreal64 run_time)=0
 
virtual const UT_WorkArgsgetArgs () const =0
 Get the arguments passed into this program. More...
 

Static Public Member Functions

static UT_TestManagerget ()
 Access the global test manager. More...
 

Detailed Description

Definition at line 36 of file UT_TestManager.h.

Constructor & Destructor Documentation

UT_TestManager::UT_TestManager ( )
inline

Definition at line 39 of file UT_TestManager.h.

virtual UT_TestManager::~UT_TestManager ( )
inlinevirtual

Definition at line 40 of file UT_TestManager.h.

Member Function Documentation

virtual void UT_TestManager::addTest ( const char *  name,
UT_Functor< bool > &  callback 
)
pure virtual

Called by the TEST_REGISTER*() macros to automatically add a new test case

static UT_TestManager& UT_TestManager::get ( )
static

Access the global test manager.

virtual const UT_WorkArgs& UT_TestManager::getArgs ( ) const
pure virtual

Get the arguments passed into this program.

virtual bool UT_TestManager::isInteractive ( ) const
pure virtual

Determine if the test was interactively invoked.

virtual bool UT_TestManager::isPerformance ( ) const
pure virtual

Determine if the tests are being run for performance.

virtual void UT_TestManager::logResult ( const char *  name,
bool  success,
fpreal64  run_time 
)
pure virtual

Allow for logging of intermediate test results. If logging is turned on in the test manager, the test name, status and run time will be saved.

virtual int UT_TestManager::numThreads ( ) const
pure virtual

Determine the number of threads requested.

virtual int UT_TestManager::run ( int  argc,
char *  argv[] 
)
pure virtual

Called by main() to run the tests. Returns the number of test failures.


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