KD Chart 2
[rev.2.7]
|
#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 () |
|
protected |
|
protected |
Definition at line 69 of file test.cpp.
References fail(), and success().
Referenced by succeeded().
|
protected |
|
protected |
|
protected |
Definition at line 64 of file test.cpp.
References fail(), and success().
Referenced by succeeded().
|
protected |
|
protected |
Definition at line 37 of file test.cpp.
References fail(), and success().
Referenced by succeeded().
|
protected |
|
protected |
Definition at line 59 of file test.cpp.
References fail(), and success().
Referenced by succeeded().
|
protected |
Definition at line 90 of file test.cpp.
Referenced by _assertEqual(), _assertEqualWithEpsilons(), _assertFalse(), _assertNotEqual(), _assertNotNull(), _assertNull(), and _assertTrue().
|
pure virtual |
Referenced by succeeded().
unsigned int KDAB::UnitTest::Test::succeeded | ( | ) | const |
Definition at line 95 of file test.h.
References _assertEqualWithEpsilons(), _assertFalse(), _assertNotNull(), _assertNull(), _assertTrue(), and run().
|
protected |
Definition at line 130 of file test.h.
Referenced by _assertEqual(), _assertEqualWithEpsilons(), _assertFalse(), _assertNotEqual(), _assertNotNull(), _assertNull(), and _assertTrue().