CppUnit project page | FAQ | CppUnit home page |
Names a test or a fixture suite. More...
#include <TestNamer.h>
Public Member Functions | |
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. | |
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::string & | fixtureName | ) |
Constructs a namer using the specified fixture name.
fixtureName | Name of the fixture suite. Usually extracted using a macro. |
TestNamer::~TestNamer | ( | ) | [virtual] |
std::string TestNamer::getFixtureName | ( | ) | const [virtual] |
Returns the name of the fixture.
std::string TestNamer::getTestNameFor | ( | const std::string & | testMethodName | ) | const [virtual] |
Returns the name of the test for the specified method.
testMethodName | Name of the method that implements a test. |
std::string TestNamer::m_fixtureName [protected] |
|
hosts this site. |
Send comments to: CppUnit Developers |