Workspace 6.21.5
Public Member Functions | Protected Member Functions | List of all members
TestSuite::TestCase< TestNum > Class Template Reference

Nested class template defining a test case for test TestNum. More...

#include <Workspace/testcommon.h>

Inheritance diagram for TestSuite::TestCase< TestNum >:
[legend]

Public Member Functions

 TestCase (StdCapture &stdCap)
 
- Public Member Functions inherited from TestHarness
virtual ~TestHarness ()
 
void fail (const std::string &msg="") const
 
const std::string & getDescription () const
 
const std::string & getName () const
 
void pass () const
 
int run (bool captureOutput=false)
 
void setDescription (const std::string &desc)
 
void setName (const std::string &name)
 
bool shouldSkipRemainingTests () const
 
void skip (const std::string &msg="") const
 
int skipAll (const std::string &msg="")
 

Protected Member Functions

void runTest () override
 
- Protected Member Functions inherited from TestHarness
 TestHarness (const std::string &name, const std::string &description="")
 
 TestHarness (StdCapture &stdCap)
 
bool fuzzyZero (double val, double tol)
 
virtual void runTest ()=0
 

Additional Inherited Members

- Static Public Member Functions inherited from TestHarness
static bool compareTextFiles (const std::string &file1, const std::string &file2)
 

Detailed Description

template<int TestNum>
class CSIRO::Testing::TestSuite::TestCase< TestNum >

Clients should specialize the runTest() function.

Constructor & Destructor Documentation

◆ TestCase()

TestCase ( StdCapture stdCap)
inline

Member Function Documentation

◆ runTest()

void runTest ( )
inlineoverrideprotectedvirtual

Specialize this function to perform a real test

Implements TestHarness.