const string & getName() const
Returns the name passed to the constructor.
This class is a visitor for classes derived from Test according to the Visitor Pattern.
bool operator<(const Test &test) const
Compares names lexicographically.
Test(const string &name)
Construct a Test with the given name.
string _name
The name passed to the constructor.
This class represents a test or a suite of tests according to the Composite Pattern.
virtual bool accept(TestVisitor &visitor)=0
Makes the visitor visit this object as per the Visitor Pattern.