My Project
|
#include <TestTracker.h>
Public Member Functions | |
virtual | ~TestTracker () |
const TestDescription * | fixTest (const TestDescription *d) const |
const SuiteDescription * | fixSuite (const SuiteDescription *d) const |
const WorldDescription * | fixWorld (const WorldDescription *d) const |
const TestDescription & | test () const |
const SuiteDescription & | suite () const |
const WorldDescription & | world () const |
bool | testFailed () const |
bool | suiteFailed () const |
bool | worldFailed () const |
unsigned | warnings () const |
unsigned | failedTests () const |
unsigned | testFailedAsserts () const |
unsigned | suiteFailedTests () const |
unsigned | failedSuites () const |
void | enterWorld (const WorldDescription &wd) |
void | enterSuite (const SuiteDescription &sd) |
void | enterTest (const TestDescription &td) |
void | leaveTest (const TestDescription &td) |
void | leaveSuite (const SuiteDescription &sd) |
void | leaveWorld (const WorldDescription &wd) |
void | trace (const char *file, unsigned line, const char *expression) |
void | warning (const char *file, unsigned line, const char *expression) |
void | failedTest (const char *file, unsigned line, const char *expression) |
void | failedAssert (const char *file, unsigned line, const char *expression) |
void | failedAssertEquals (const char *file, unsigned line, const char *xStr, const char *yStr, const char *x, const char *y) |
void | failedAssertSameData (const char *file, unsigned line, const char *xStr, const char *yStr, const char *sizeStr, const void *x, const void *y, unsigned size) |
void | failedAssertDelta (const char *file, unsigned line, const char *xStr, const char *yStr, const char *dStr, const char *x, const char *y, const char *d) |
void | failedAssertDiffers (const char *file, unsigned line, const char *xStr, const char *yStr, const char *value) |
void | failedAssertLessThan (const char *file, unsigned line, const char *xStr, const char *yStr, const char *x, const char *y) |
void | failedAssertLessThanEquals (const char *file, unsigned line, const char *xStr, const char *yStr, const char *x, const char *y) |
void | failedAssertPredicate (const char *file, unsigned line, const char *predicate, const char *xStr, const char *x) |
void | failedAssertRelation (const char *file, unsigned line, const char *relation, const char *xStr, const char *yStr, const char *x, const char *y) |
void | failedAssertThrows (const char *file, unsigned line, const char *expression, const char *type, bool otherThrown) |
void | failedAssertThrowsNot (const char *file, unsigned line, const char *expression) |
Public Member Functions inherited from CxxTest::TestListener | |
TestListener () | |
virtual | ~TestListener () |
virtual void | enterWorld (const WorldDescription &) |
virtual void | enterSuite (const SuiteDescription &) |
virtual void | enterTest (const TestDescription &) |
virtual void | trace (const char *, unsigned, const char *) |
virtual void | warning (const char *, unsigned, const char *) |
virtual void | failedTest (const char *, unsigned, const char *) |
virtual void | failedAssert (const char *, unsigned, const char *) |
virtual void | failedAssertEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertSameData (const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned) |
virtual void | failedAssertDelta (const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *) |
virtual void | failedAssertDiffers (const char *, unsigned, const char *, const char *, const char *) |
virtual void | failedAssertLessThan (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertLessThanEquals (const char *, unsigned, const char *, const char *, const char *, const char *) |
virtual void | failedAssertPredicate (const char *, unsigned, const char *, const char *, const char *) |
virtual void | failedAssertRelation (const char *, unsigned, const char *, const char *, const char *, const char *, const char *) |
virtual void | failedAssertThrows (const char *, unsigned, const char *, const char *, bool) |
virtual void | failedAssertThrowsNot (const char *, unsigned, const char *) |
virtual void | leaveTest (const TestDescription &) |
virtual void | leaveSuite (const SuiteDescription &) |
virtual void | leaveWorld (const WorldDescription &) |
Static Public Member Functions | |
static TestTracker & | tracker () |
Private Member Functions | |
TestTracker (const TestTracker &) | |
TestTracker & | operator= (const TestTracker &) |
const TestDescription & | dummyTest () const |
const SuiteDescription & | dummySuite () const |
const WorldDescription & | dummyWorld () const |
void | setWorld (const WorldDescription *w) |
void | setSuite (const SuiteDescription *s) |
void | setTest (const TestDescription *t) |
void | countWarning () |
void | countFailure () |
TestTracker () | |
void | initialize () |
void | setListener (TestListener *l) |
Private Attributes | |
STATIC_VAR bool | _created = false |
TestListener | _dummyListener |
DummyWorldDescription | _dummyWorld |
unsigned | _warnings |
unsigned | _failedTests |
unsigned | _testFailedAsserts |
unsigned | _suiteFailedTests |
unsigned | _failedSuites |
TestListener * | _l |
const WorldDescription * | _world |
const SuiteDescription * | _suite |
const TestDescription * | _test |
Friends | |
class | TestRunner |
Definition at line 17 of file TestTracker.h.
|
virtual |
Definition at line 18 of file TestTracker.cpp.
|
private |
|
private |
Definition at line 10 of file TestTracker.cpp.
|
private |
Definition at line 238 of file TestTracker.cpp.
|
private |
Definition at line 233 of file TestTracker.cpp.
|
private |
Definition at line 61 of file TestTracker.cpp.
|
private |
Definition at line 56 of file TestTracker.cpp.
|
private |
Definition at line 66 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 83 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 90 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 76 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 132 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 155 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 163 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 138 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 171 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 179 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 187 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 194 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 146 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 202 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 210 of file TestTracker.cpp.
|
inline |
Definition at line 40 of file TestTracker.h.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 126 of file TestTracker.cpp.
|
inline |
Definition at line 37 of file TestTracker.h.
const SuiteDescription * CxxTest::TestTracker::fixSuite | ( | const SuiteDescription * | d | ) | const |
Definition at line 46 of file TestTracker.cpp.
const TestDescription * CxxTest::TestTracker::fixTest | ( | const TestDescription * | d | ) | const |
Definition at line 41 of file TestTracker.cpp.
const WorldDescription * CxxTest::TestTracker::fixWorld | ( | const WorldDescription * | d | ) | const |
Definition at line 51 of file TestTracker.cpp.
|
private |
Definition at line 28 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 103 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 97 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 109 of file TestTracker.cpp.
|
private |
|
private |
Definition at line 71 of file TestTracker.cpp.
|
private |
Definition at line 222 of file TestTracker.cpp.
|
private |
Definition at line 228 of file TestTracker.cpp.
|
private |
Definition at line 216 of file TestTracker.cpp.
|
inline |
Definition at line 29 of file TestTracker.h.
|
inline |
Definition at line 33 of file TestTracker.h.
|
inline |
Definition at line 39 of file TestTracker.h.
|
inline |
Definition at line 28 of file TestTracker.h.
|
inline |
Definition at line 32 of file TestTracker.h.
|
inline |
Definition at line 38 of file TestTracker.h.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 115 of file TestTracker.cpp.
|
static |
Definition at line 22 of file TestTracker.cpp.
|
virtual |
Reimplemented from CxxTest::TestListener.
Definition at line 120 of file TestTracker.cpp.
|
inline |
Definition at line 36 of file TestTracker.h.
|
inline |
Definition at line 30 of file TestTracker.h.
|
inline |
Definition at line 34 of file TestTracker.h.
|
friend |
Definition at line 104 of file TestTracker.h.
|
private |
Definition at line 85 of file TestTracker.h.
|
private |
Definition at line 86 of file TestTracker.h.
|
private |
Definition at line 87 of file TestTracker.h.
|
private |
Definition at line 88 of file TestTracker.h.
|
private |
Definition at line 88 of file TestTracker.h.
|
private |
Definition at line 89 of file TestTracker.h.
|
private |
Definition at line 91 of file TestTracker.h.
|
private |
Definition at line 88 of file TestTracker.h.
|
private |
Definition at line 92 of file TestTracker.h.
|
private |
Definition at line 88 of file TestTracker.h.
|
private |
Definition at line 88 of file TestTracker.h.
|
private |
Definition at line 90 of file TestTracker.h.