#include <ErrorFormatter.h>
|
| ErrorFormatter (OutputStream *o, const char *preLine=":", const char *postLine="") |
|
int | run () |
|
void | enterWorld (const WorldDescription &) |
|
void | enterSuite (const SuiteDescription &) |
|
void | enterTest (const TestDescription &) |
|
void | leaveTest (const TestDescription &) |
|
void | leaveWorld (const WorldDescription &desc) |
|
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 | failedAssertRelation (const char *file, unsigned line, const char *relation, 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 | failedAssertThrows (const char *file, unsigned line, const char *expression, const char *type, bool otherThrown) |
|
void | failedAssertThrowsNot (const char *file, unsigned line, const char *expression) |
|
| TestListener () |
|
virtual | ~TestListener () |
|
virtual void | leaveSuite (const SuiteDescription &) |
|
Definition at line 33 of file ErrorFormatter.h.
◆ ErrorFormatter() [1/2]
Definition at line 36 of file ErrorFormatter.h.
36 :", const char *postLine = "" ) :
37 _dotting( true ),
38 _reported( false ),
39 _o(o),
40 _preLine(preLine),
41 _postLine(postLine)
42 {
43 }
◆ ErrorFormatter() [2/2]
◆ dump()
◆ dumpBuffer()
Definition at line 253 of file ErrorFormatter.h.
254 {
258
259 const unsigned char *
p = (
const unsigned char *)buffer;
260 (*_o) << " { ";
264 (*_o) << "... ";
265 (*_o) <<
"}" <<
endl;
266 }
const char * byteToHex(unsigned char byte)
◆ dumpNull()
void CxxTest::ErrorFormatter::dumpNull |
( |
| ) |
|
|
inlineprivate |
◆ endl()
◆ enterSuite()
◆ enterTest()
◆ enterWorld()
◆ failedAssert()
◆ failedAssertDelta()
Reimplemented from CxxTest::TestListener.
Definition at line 141 of file ErrorFormatter.h.
144 {
145 stop( file, line ) <<
"Error: Expected (" <<
146 xStr <<
" == " <<
yStr <<
") up to " <<
dStr <<
" (" << d <<
"), found (" <<
147 x <<
" != " <<
y <<
")" <<
endl;
148 }
const CanonicalForm int const CFList const Variable & y
◆ failedAssertDiffers()
◆ failedAssertEquals()
◆ failedAssertLessThan()
◆ failedAssertLessThanEquals()
◆ failedAssertPredicate()
◆ failedAssertRelation()
◆ failedAssertSameData()
◆ failedAssertThrows()
◆ failedAssertThrowsNot()
◆ failedTest()
◆ leaveTest()
◆ leaveWorld()
◆ newLine()
void CxxTest::ErrorFormatter::newLine |
( |
void |
| ) |
|
|
inlineprivate |
◆ operator=()
◆ outputStream()
OutputStream * CxxTest::ErrorFormatter::outputStream |
( |
| ) |
const |
|
inlineprotected |
◆ reportTest()
void CxxTest::ErrorFormatter::reportTest |
( |
void |
| ) |
|
|
inlineprivate |
Definition at line 232 of file ErrorFormatter.h.
233 {
235 return;
238 }
virtual const char * suiteName() const =0
virtual const char * testName() const =0
const SuiteDescription & suite() const
const TestDescription & test() const
◆ run()
int CxxTest::ErrorFormatter::run |
( |
| ) |
|
|
inline |
Definition at line 45 of file ErrorFormatter.h.
46 {
49 }
static void runAllTests(TestListener &listener)
◆ stop()
◆ totalTests()
Definition at line 59 of file ErrorFormatter.h.
60 {
63 o <<
wd.strTotalTests(
s ) << (
wd.numTotalTests() == 1 ?
" test" :
" tests");
64 }
const WorldDescription & world() const
◆ trace()
◆ warning()
◆ _dotting
bool CxxTest::ErrorFormatter::_dotting |
|
private |
◆ _o
◆ _postLine
const char* CxxTest::ErrorFormatter::_postLine |
|
private |
◆ _preLine
const char* CxxTest::ErrorFormatter::_preLine |
|
private |
◆ _reported
bool CxxTest::ErrorFormatter::_reported |
|
private |
The documentation for this class was generated from the following file: