CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TestLeaf Class Reference

A single test object. More...

#include <TestLeaf.h>

Inheritance diagram for TestLeaf:

Test TestCase Orthodox< ClassUnderTest > TestCaller< Fixture > TestCaseDecorator ExceptionTestCaseDecorator< ExpectedException > List of all members.

Public Member Functions

int countTestCases () const
int getChildTestCount () const
TestdoGetChildTestAt (int index) const

Detailed Description

A single test object.

Base class for single test case: a test that doesn't have any children.


Member Function Documentation

CPPUNIT_NS_BEGIN int TestLeaf::countTestCases  )  const [virtual]
 

Returns 1 as the default number of test cases invoked by run().

You may override this method when many test cases are invoked (RepeatedTest for example).

Returns:
1.
See also:
Test::countTestCases().

Implements Test.

Test * TestLeaf::doGetChildTestAt int  index  )  const [virtual]
 

Always throws std::out_of_range.

See also:
Test::doGetChildTestAt().

Implements Test.

int TestLeaf::getChildTestCount  )  const [virtual]
 

Returns the number of child of this test case: 0.

You should never override this method: a TestLeaf as no children by definition.

Returns:
0.

Implements Test.


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers