| CppUnit project page | FAQ |
Names a test or a fixture suite. More...
#include <TestNamer.h>
Public Member Functions | |
| TestNamer (const std::type_info &typeInfo) | |
| Constructs a namer using the fixture's type-info. | |
| TestNamer (const std::string &fixtureName) | |
| Constructs a namer using the specified fixture name. | |
| virtual | ~TestNamer () |
| virtual std::string | getFixtureName () const |
| Returns the name of the fixture. | |
| virtual std::string | getTestNameFor (const std::string &testMethodName) const |
| Returns the name of the test for the specified method. | |
| template<typename E > | |
| std::string | getTestNameFor (const std::string &testMethodName, const E &val) const |
Protected Attributes | |
| std::string | m_fixtureName |
Names a test or a fixture suite.
TestNamer is usually instantiated using CPPUNIT_TESTNAMER_DECL.
| CPPUNIT_NS_BEGIN TestNamer::TestNamer | ( | const std::type_info & | typeInfo | ) |
Constructs a namer using the fixture's type-info.
| typeInfo | Type-info of the fixture type. Use to name the fixture suite. |
| TestNamer::TestNamer | ( | const std::string & | fixtureName | ) |
Constructs a namer using the specified fixture name.
| fixtureName | Name of the fixture suite. Usually extracted using a macro. |
|
virtual |
|
virtual |
Returns the name of the fixture.
|
virtual |
Returns the name of the test for the specified method.
| testMethodName | Name of the method that implements a test. |
|
inline |
|
protected |
|
Send comments to: CppUnit Developers |