Base class supporting verification for test assertions.
More...
#include <TestBase.h>
|
virtual | ~TestBase () |
|
virtual bool | testVerify (bool res, const TestParam ¶m) |
| 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) |
|
Base class supporting verification for test assertions.
◆ ~TestBase()
virtual TestBase::~TestBase |
( |
| ) |
|
|
inlinevirtual |
◆ fail()
virtual void TestBase::fail |
( |
const char * |
func | ) |
|
|
inlinevirtual |
◆ 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
-
res | Result of the operation |
param | Details of the test for display |
- Return values
-
The documentation for this class was generated from the following file: