CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TestLeaf.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTLEAF_H
2 #define CPPUNIT_TESTLEAF_H
3
4 #include <cppunit/Test.h>
5
6
7 CPPUNIT_NS_BEGIN
8
9
15 class CPPUNIT_API TestLeaf: public Test
16 {
17 public:
26 int countTestCases() const;
27
34 int getChildTestCount() const;
35
39 Test *doGetChildTestAt( int index ) const;
40 };
41
42 CPPUNIT_NS_END
43
44 #endif // CPPUNIT_TESTLEAF_H
Test::countTestCases
virtual int countTestCases() const =0
Return the number of test cases invoked by run().
Test
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
TestLeaf
A single test object.
Definition: TestLeaf.h:15
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
Test::doGetChildTestAt
virtual Test * doGetChildTestAt(int index) const =0
Returns the child test of the specified valid index.
Test.h
Test::getChildTestCount
virtual int getChildTestCount() const =0
Returns the number of direct child of the test.
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27

| Send comments to: CppUnit Developers