summaryrefslogtreecommitdiff
path: root/src/cppunit/TestLeaf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/TestLeaf.cpp')
-rw-r--r--src/cppunit/TestLeaf.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cppunit/TestLeaf.cpp b/src/cppunit/TestLeaf.cpp
new file mode 100644
index 0000000..80160cb
--- /dev/null
+++ b/src/cppunit/TestLeaf.cpp
@@ -0,0 +1,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