summaryrefslogtreecommitdiff
path: root/src/cppunit/TestLeaf.cpp
blob: 80160cb32365b8eea3452e68b1e42a037d7a812f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <cppunit/TestLeaf.h>


namespace CppUnit {


int 
TestLeaf::countTestCases() const
{
  return 1;
}


int 
TestLeaf::getChildTestCount() const
{
  return 0;
}


Test *
TestLeaf::doGetChildTestAt( int index ) const
{
  checkIsValidIndex( index );
  return NULL;    // never called, checkIsValidIndex() always throw.
}

} // namespace CppUnit