CppUnit project page | FAQ | CppUnit home page |
#include <TestDecorator.h>
Inheritance diagram for TestDecorator:
Public Member Functions | |
TestDecorator (Test *test) | |
~TestDecorator () | |
int | countTestCases () const |
Return the number of test cases invoked by run(). | |
std::string | getName () const |
Returns the test name. | |
void | run (TestResult *result) |
Run the test, collecting results. | |
int | getChildTestCount () const |
Returns the number of direct child of the test. | |
Protected Member Functions | |
Test * | doGetChildTestAt (int index) const |
Returns the child test of the specified valid index. | |
Protected Attributes | |
Test * | m_test |
Private Member Functions | |
TestDecorator (const TestDecorator &) | |
void | operator= (const TestDecorator &) |
TestDecorator provides an alternate means to extend functionality of a test class without subclassing the test. Instead, one can subclass the decorater and use it to wrap the test class.
Does not assume ownership of the test it decorates
|
|
|
|
|
|
|
Return the number of test cases invoked by run(). The base unit of testing is the class TestCase. This method returns the number of TestCase objects invoked by the run() method. Implements Test. Reimplemented in RepeatedTest. |
|
Returns the child test of the specified valid index.
Implements Test. |
|
Returns the number of direct child of the test.
Implements Test. |
|
Returns the test name. Each test has a name. This name may be used to find the test in a suite or registry of tests. Implements Test. |
|
|
|
Run the test, collecting results.
Implements Test. Reimplemented in RepeatedTest, and TestSetUp. |
|
|
hosts this site. |
Send comments to: CppUnit Developers |