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

#include <UT_TestManager.h>

Public Member Functions

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
 

Static Public Member Functions

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

Detailed Description

Definition at line 34 of file UT_TestManager.h.

Constructor & Destructor Documentation

virtual UT_TestManager::~UT_TestManager ( )
inlinevirtual

Definition at line 37 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 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: