#include <unittest_decls.h>
Inheritance diagram for TestSuite:
Public Member Functions | |
TestSuite (const std::string &n) | |
TestSuite constructor. | |
TestSuite (const TestSuite &o) | |
Copy constructor. | |
TestSuite * | clone () const |
Virtual copy constructor. | |
void | addtest (BaseTest *test) |
Adds a given test to this suite. | |
void | run (BaseGatherer &g) |
Runs the test reporting results to the provided gatherer. |
TestSuite::TestSuite | ( | const std::string & | n | ) | [inline] |
TestSuite::TestSuite | ( | const TestSuite & | o | ) | [inline] |
TestSuite * TestSuite::clone | ( | ) | const [virtual] |
Virtual copy constructor.
This might be quite memory intensive as it actually copies deep.
Implements BaseTest.
void TestSuite::addtest | ( | BaseTest * | test | ) |
Adds a given test to this suite.
test | is the test to add |
void TestSuite::run | ( | BaseGatherer & | g | ) | [virtual] |
Runs the test reporting results to the provided gatherer.
g | is the gatherer results are reported to |
Implements BaseTest.