class unitpp::suite

A suite is a test that happens to be a collection of tests.

Inheritance:


Public Methods

[more] suite(const std::string& name)
Make an empty test suite
[more]void add(const std::string& id, const testcase& t)
Add a testcase to the suite
[more]virtual test* get_child(const std::string& id)
Get a child with the specified id.
[more]virtual void operator()()
An empty implementation
[more]void visit(visitor*)
Allow a visitor to visit a suite node of the test tree
[more]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.
o suite(const std::string& name)
Make an empty test suite

ovoid add(const std::string& id, const testcase& t)
Add a testcase to the suite

ovirtual test* get_child(const std::string& id)
Get a child with the specified id.
Returns:
0 if not found.

ovirtual void operator()()
An empty implementation

ovoid visit(visitor*)
Allow a visitor to visit a suite node of the test tree

ostatic 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++.