dlr::test Namespace Reference

This namespace contains a unit testing library. More...


Classes

class  RunnableObject
 This class serves a parent class for the various TestFuxture<foo> types, allowing virtual function dispatch to TestFuxture<foo>::run(), and (if DLR_TEST_USE_AUTOMATIC_MAIN is defined) automatic registration with the pre-written main() function. More...
class  TestException
 This exception is thrown to indicate a failed test. More...
class  TestFixture
 The TestFixture class helps with unit testing by coordinating the execution of a test suite. More...

Functions

void private_registerTestFixture (RunnableObject &testFixture)
void private_unregisterTestFixture (RunnableObject &testFixture)
void registerTestFixture (RunnableObject &testFixture)
 This function Registers a test fixture with the pre-written main() function so that it will be run automatically if the user chooses to link with libdlrTestAutoMain.
void unregisterTestFixture (RunnableObject &testFixture)
 This function unregisters a test fixture with the pre-written main() function so that it will not be be run automatically if the user chooses to link with libdlrTestAutoMain.


Detailed Description

This namespace contains a unit testing library.

Function Documentation

void dlr::test::registerTestFixture ( RunnableObject &  testFixture  )  [inline]

This function Registers a test fixture with the pre-written main() function so that it will be run automatically if the user chooses to link with libdlrTestAutoMain.

This function can be disabled by defining DLR_TEST_NO_AUTOMATIC_REGISTRATION.

Parameters:
testFixture This argument is the test fixture to be registered.

Definition at line 48 of file autoregister.h.

References private_registerTestFixture().

Referenced by dlr::test::RunnableObject::RunnableObject().

void dlr::test::unregisterTestFixture ( RunnableObject &  testFixture  )  [inline]

This function unregisters a test fixture with the pre-written main() function so that it will not be be run automatically if the user chooses to link with libdlrTestAutoMain.

It undoes the effect of registerTestFixture(). This function can be disabled by defining DLR_TEST_NO_AUTOMATIC_REGISTRATION.

Parameters:
testFixture This argument is the test fixture to be registered.

Definition at line 64 of file autoregister.h.

References private_unregisterTestFixture().

Referenced by dlr::test::RunnableObject::~RunnableObject().


Generated on Mon Jul 9 20:34:22 2007 for dlrLibs Utility Libraries by  doxygen 1.5.2