1#ifndef __cxxtest__TestTracker_cpp__
2#define __cxxtest__TestTracker_cpp__
117 _l->
trace( file, line, expression );
139 const char *xStr,
const char *yStr,
140 const char *
x,
const char *
y )
147 const char *xStr,
const char *yStr,
148 const char *sizeStr,
const void *
x,
149 const void *
y,
unsigned size )
156 const char *xStr,
const char *yStr,
const char *dStr,
157 const char *
x,
const char *
y,
const char *d )
164 const char *xStr,
const char *yStr,
172 const char *xStr,
const char *yStr,
173 const char *
x,
const char *
y )
180 const char *xStr,
const char *yStr,
181 const char *
x,
const char *
y )
188 const char *predicate,
const char *xStr,
const char *
x )
195 const char *relation,
const char *xStr,
const char *yStr,
196 const char *
x,
const char *
y )
203 const char *expression,
const char *type,
virtual const TestDescription & testDescription(unsigned) const =0
virtual void failedAssertLessThanEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
virtual void failedAssertDiffers(const char *, unsigned, const char *, const char *, const char *)
virtual void failedAssertEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
virtual void trace(const char *, unsigned, const char *)
virtual void leaveTest(const TestDescription &)
virtual void failedAssertLessThan(const char *, unsigned, const char *, const char *, const char *, const char *)
virtual void failedAssert(const char *, unsigned, const char *)
virtual void failedAssertDelta(const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *)
virtual void failedAssertRelation(const char *, unsigned, const char *, const char *, const char *, const char *, const char *)
virtual void failedTest(const char *, unsigned, const char *)
virtual void failedAssertThrowsNot(const char *, unsigned, const char *)
virtual void failedAssertThrows(const char *, unsigned, const char *, const char *, bool)
virtual void enterWorld(const WorldDescription &)
virtual void warning(const char *, unsigned, const char *)
virtual void leaveWorld(const WorldDescription &)
virtual void leaveSuite(const SuiteDescription &)
virtual void failedAssertPredicate(const char *, unsigned, 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 enterSuite(const SuiteDescription &)
virtual void enterTest(const TestDescription &)
void failedAssertRelation(const char *file, unsigned line, const char *relation, const char *xStr, const char *yStr, const char *x, const char *y)
const TestDescription * _test
const WorldDescription * _world
const SuiteDescription * fixSuite(const SuiteDescription *d) const
const WorldDescription * fixWorld(const WorldDescription *d) const
void trace(const char *file, unsigned line, const char *expression)
void leaveWorld(const WorldDescription &wd)
void enterTest(const TestDescription &td)
void failedAssertThrows(const char *file, unsigned line, const char *expression, const char *type, bool otherThrown)
void failedAssertPredicate(const char *file, unsigned line, const char *predicate, const char *xStr, const char *x)
void enterWorld(const WorldDescription &wd)
void failedAssertLessThanEquals(const char *file, unsigned line, const char *xStr, const char *yStr, const char *x, const char *y)
const WorldDescription & dummyWorld() const
const SuiteDescription & dummySuite() const
void failedTest(const char *file, unsigned line, const char *expression)
void setListener(TestListener *l)
void failedAssert(const char *file, unsigned line, const char *expression)
void enterSuite(const SuiteDescription &sd)
void failedAssertDiffers(const char *file, unsigned line, const char *xStr, const char *yStr, const char *value)
void failedAssertEquals(const char *file, unsigned line, const char *xStr, const char *yStr, const char *x, const char *y)
void setWorld(const WorldDescription *w)
static TestTracker & tracker()
TestListener _dummyListener
void setSuite(const SuiteDescription *s)
unsigned _testFailedAsserts
DummyWorldDescription _dummyWorld
const TestDescription * fixTest(const TestDescription *d) const
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)
const TestDescription & dummyTest() const
void warning(const char *file, unsigned line, const char *expression)
void setTest(const TestDescription *t)
void leaveSuite(const SuiteDescription &sd)
void failedAssertThrowsNot(const char *file, unsigned line, const char *expression)
const SuiteDescription * _suite
void leaveTest(const TestDescription &td)
unsigned _suiteFailedTests
void failedAssertLessThan(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)
virtual const SuiteDescription & suiteDescription(unsigned) const =0
const CanonicalForm int const CFList const Variable & y