#include <test.h>
Public Member Functions | |
unsigned int | failed () const |
const std::string & | name () const |
virtual void | run ()=0 |
unsigned int | succeeded () const |
Test (const std::string &name) | |
virtual | ~Test () |
Protected Member Functions | |
template<typename T , typename S > | |
void | _assertEqual (const T &x1, const S &x2, const char *expr1, const char *expr2, const char *file, unsigned int line) |
void | _assertEqualWithEpsilons (float x1, float x2, int prec, const char *expr1, const char *expr2, const char *exprPrec, const char *file, unsigned int line) |
void | _assertEqualWithEpsilons (double x1, double x2, int prec, const char *expr1, const char *expr2, const char *exprPrec, const char *file, unsigned int line) |
void | _assertEqualWithEpsilons (long double x1, long double x2, int prec, const char *expr1, const char *expr2, const char *exprPrec, const char *file, unsigned int line) |
void | _assertFalse (bool x, const char *expression, const char *file, unsigned int line) |
template<typename T , typename S > | |
void | _assertNotEqual (const T &x1, const S &x2, const char *expr1, const char *expr2, const char *file, unsigned int line) |
void | _assertNotNull (const void *x, const char *expression, const char *file, unsigned int line) |
void | _assertNull (const void *x, const char *expression, const char *file, unsigned int line) |
void | _assertTrue (bool x, const char *expression, const char *file, unsigned int line) |
std::ostream & | fail (const char *file, unsigned int line) |
void | success () |
Definition at line 84 of file test.h.
void KDAB::UnitTest::Test::_assertEqual | ( | const T & | x1, |
const S & | x2, | ||
const char * | expr1, | ||
const char * | expr2, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertEqualWithEpsilons | ( | double | x1, |
double | x2, | ||
int | prec, | ||
const char * | expr1, | ||
const char * | expr2, | ||
const char * | exprPrec, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertEqualWithEpsilons | ( | long double | x1, |
long double | x2, | ||
int | prec, | ||
const char * | expr1, | ||
const char * | expr2, | ||
const char * | exprPrec, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertEqualWithEpsilons | ( | float | x1, |
float | x2, | ||
int | prec, | ||
const char * | expr1, | ||
const char * | expr2, | ||
const char * | exprPrec, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertFalse | ( | bool | x, |
const char * | expression, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertNotEqual | ( | const T & | x1, |
const S & | x2, | ||
const char * | expr1, | ||
const char * | expr2, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertNotNull | ( | const void * | x, |
const char * | expression, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertNull | ( | const void * | x, |
const char * | expression, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
void KDAB::UnitTest::Test::_assertTrue | ( | bool | x, |
const char * | expression, | ||
const char * | file, | ||
unsigned int | line | ||
) | [protected] |
std::ostream & KDAB::UnitTest::Test::fail | ( | const char * | file, |
unsigned int | line | ||
) | [protected] |
Definition at line 90 of file test.cpp.
Referenced by _assertEqual(), and _assertNotEqual().
virtual void KDAB::UnitTest::Test::run | ( | ) | [pure virtual] |
void KDAB::UnitTest::Test::success | ( | ) | [protected] |
Definition at line 128 of file test.h.
Referenced by _assertEqual(), and _assertNotEqual().