A suite is a test that happens to be a collection of tests.
Inheritance:
Public Methods
-
suite(const std::string& name)
- Make an empty test suite
-
void add(const std::string& id, const testcase& t)
- Add a testcase to the suite
-
virtual test* get_child(const std::string& id)
- Get a child with the specified id.
-
virtual void operator()()
- An empty implementation
-
void visit(visitor*)
- Allow a visitor to visit a suite node of the test tree
-
static suite& main()
- Get a reference to the main test suite that the main program will run
Inherited from test:
Documentation
A suite is a test that happens to be a collection of tests. This is an
implementation of the Composite pattern.
- suite(const std::string& name)
- Make an empty test suite
- void add(const std::string& id, const testcase& t)
- Add a testcase to the suite
- virtual test* get_child(const std::string& id)
-
Get a child with the specified id.
- Returns:
- 0 if not found.
- virtual void operator()()
- An empty implementation
- void visit(visitor*)
- Allow a visitor to visit a suite node of the test tree
- static suite& main()
- Get a reference to the main test suite that the main program will run
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.