Frobby
0.9.5
|
Visits a tree of Test while keeping track of the path taken from the root to the current node as a dot-separated string. More...
#include <TestQualifier.h>
Public Member Functions | |
virtual bool | visitEnter (TestSuite &suite) |
Returns true if the testSuite should be iterated through. More... | |
virtual bool | visitLeave (TestSuite &suite) |
Returns true if visiting of any other objects should continue after the testSuite has been visited. More... | |
const string & | getPath () const |
Returns the path taken from the root of the tree to the current node as a dot-separated string. More... | |
Public Member Functions inherited from TestVisitor | |
virtual | ~TestVisitor () |
virtual bool | visit (TestCase &testCase) |
Visits a testCase and returns true if visiting of any other objects should continue after the testSuite has been visited. More... | |
virtual bool | visit (TestSuite &testSuite) |
The default implementation calls visitEnter and visits the added objects in forward order if the return value is true. More... | |
Private Attributes | |
string | _path |
Visits a tree of Test while keeping track of the path taken from the root to the current node as a dot-separated string.
Definition at line 28 of file TestQualifier.h.
const string & TestQualifier::getPath | ( | ) | const |
Returns the path taken from the root of the tree to the current node as a dot-separated string.
Definition at line 39 of file TestQualifier.cpp.
|
virtual |
Returns true if the testSuite should be iterated through.
Is called before testSuite is processed in any other way, and if return value is false, the testSuite will not be iterated through, according to the default implemenation of visit(TestCase&). The default implementation always returns true.
Reimplemented from TestVisitor.
Definition at line 22 of file TestQualifier.cpp.
|
virtual |
Returns true if visiting of any other objects should continue after the testSuite has been visited.
Is called as last step of visiting testSuite, and the visiting process will stop if return value is false, according to the default implementation of visit(TestSuite&). The default implementation always returns true.
Reimplemented from TestVisitor.
Definition at line 30 of file TestQualifier.cpp.
|
private |
Definition at line 39 of file TestQualifier.h.