CppUnit project page | FAQ | CppUnit home page |
#include <TestFactoryRegistry.h>
Inheritance diagram for CppUnit::TestFactoryRegistry:
Public Methods | |
TestFactoryRegistry (std::string name="All Tests") | |
Constructs the registry with the specified name. More... | |
virtual | ~TestFactoryRegistry () |
Destructor. More... | |
virtual Test * | makeTest () |
Makes a suite containing all the registered test. More... | |
void | addTestToSuite (TestSuite *suite) |
Adds the registered test to the specified suite. More... | |
void | registerFactory (const std::string &name, TestFactory *factory) |
Registers a test factory with the specified name. More... | |
void | registerFactory (TestFactory *factory) |
Registers a test factory using its class name. More... | |
Static Public Methods | |
TestFactoryRegistry & | getRegistry () |
Returns the registry. More... | |
TestFactoryRegistry & | getRegistry (const std::string &name) |
Returns a named registry. More... | |
Private Types | |
typedef std::map< std::string, TestFactory *> | Factories |
typedef std::map< std::string, TestFactoryRegistry *> | NamedRegistries |
Private Methods | |
TestFactoryRegistry (const TestFactoryRegistry ©) | |
void | operator= (const TestFactoryRegistry ©) |
Private Attributes | |
Factories | m_factories |
std::string | m_name |
Note that the registry assume lifetime control for any registered test.
|
|
|
|
|
Constructs the registry with the specified name.
|
|
Destructor.
|
|
|
|
Adds the registered test to the specified suite.
|
|
Returns a named registry.
|
|
Returns the registry.
|
|
Makes a suite containing all the registered test.
Reimplemented from CppUnit::TestFactory. |
|
|
|
Registers a test factory using its class name.
|
|
Registers a test factory with the specified name.
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |