~ubuntu-branches/ubuntu/karmic/psi/karmic

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/src/cppunit/TestLeaf.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <cppunit/TestLeaf.h>
 
2
 
 
3
 
 
4
CPPUNIT_NS_BEGIN
 
5
 
 
6
 
 
7
int 
 
8
TestLeaf::countTestCases() const
 
9
{
 
10
  return 1;
 
11
}
 
12
 
 
13
 
 
14
int 
 
15
TestLeaf::getChildTestCount() const
 
16
{
 
17
  return 0;
 
18
}
 
19
 
 
20
 
 
21
Test *
 
22
TestLeaf::doGetChildTestAt( int index ) const
 
23
{
 
24
  checkIsValidIndex( index );
 
25
  return NULL;    // never called, checkIsValidIndex() always throw.
 
26
}
 
27
 
 
28
CPPUNIT_NS_END