TestBase Class Reference

Base class supporting verification for test assertions. More...

#include <TestBase.h>

Inheritance diagram for TestBase:

Classes

struct  TestParam
 Contains details for test verification. More...
 

Public Member Functions

virtual ~TestBase ()
 
virtual bool testVerify (bool res, const TestParam &param)
 Print result of a test. More...
 
bool test_verify (bool res, const char *expr, const String &value1, const String &value2, bool verbose)
 
template<typename V >
std::enable_if< std::is_arithmetic< V >::value, bool >::type test_verify (bool res, const char *expr, const V &value1, const V &value2, bool verbose)
 
template<typename V >
std::enable_if<!std::is_same< V, String >::value &&!std::is_arithmetic< V >::value, bool >::type test_verify (bool res, const char *expr, const V &value1, const V &value2, bool verbose)
 
virtual void fail (const char *func)
 

Detailed Description

Base class supporting verification for test assertions.

Constructor & Destructor Documentation

◆ ~TestBase()

virtual TestBase::~TestBase ( )
inlinevirtual

Member Function Documentation

◆ fail()

virtual void TestBase::fail ( const char *  func)
inlinevirtual

Reimplemented in TestGroup.

◆ test_verify() [1/3]

bool TestBase::test_verify ( bool  res,
const char *  expr,
const String value1,
const String value2,
bool  verbose 
)
inline

◆ test_verify() [2/3]

template<typename V >
std::enable_if<std::is_arithmetic<V>::value, bool>::type TestBase::test_verify ( bool  res,
const char *  expr,
const V &  value1,
const V &  value2,
bool  verbose 
)
inline

◆ test_verify() [3/3]

template<typename V >
std::enable_if<!std::is_same<V, String>::value && !std::is_arithmetic<V>::value, bool>::type TestBase::test_verify ( bool  res,
const char *  expr,
const V &  value1,
const V &  value2,
bool  verbose 
)
inline

◆ testVerify()

virtual bool TestBase::testVerify ( bool  res,
const TestParam param 
)
virtual

Print result of a test.

Parameters
resResult of the operation
paramDetails of the test for display
Return values
boolSame as res

The documentation for this class was generated from the following file: