Frobby
0.9.5
|
This class represents a test or a suite of tests according to the Composite Pattern. More...
#include <Test.h>
Public Member Functions | |
Test (const string &name) | |
Construct a Test with the given name. More... | |
virtual | ~Test () |
virtual bool | accept (TestVisitor &visitor)=0 |
Makes the visitor visit this object as per the Visitor Pattern. More... | |
const string & | getName () const |
Returns the name passed to the constructor. More... | |
bool | operator< (const Test &test) const |
Compares names lexicographically. More... | |
Private Attributes | |
string | _name |
The name passed to the constructor. More... | |
This class represents a test or a suite of tests according to the Composite Pattern.
The hierarchy of tests can be traversed according to the Visitor Pattern.
Test::Test | ( | const string & | name | ) |
|
pure virtual |
const string & Test::getName | ( | ) | const |
bool Test::operator< | ( | const Test & | test | ) | const |
|
private |