My Project
Loading...
Searching...
No Matches
Data Structures | Public Member Functions
CxxTest::ErrorPrinter Class Reference

#include <ErrorPrinter.h>

Data Structures

class  Adapter
 

Public Member Functions

 ErrorPrinter (CXXTEST_STD(ostream) &o=CXXTEST_STD(cout), const char *preLine=":", const char *postLine="")
 
virtual ~ErrorPrinter ()
 
- Public Member Functions inherited from CxxTest::ErrorFormatter
 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)
 
- 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 &)
 

Additional Inherited Members

- Static Public Member Functions inherited from CxxTest::ErrorFormatter
static void totalTests (OutputStream &o)
 
- Protected Member Functions inherited from CxxTest::ErrorFormatter
OutputStreamoutputStream () const
 

Detailed Description

Definition at line 28 of file ErrorPrinter.h.

Constructor & Destructor Documentation

◆ ErrorPrinter()

CxxTest::ErrorPrinter::ErrorPrinter ( CXXTEST_STD(ostream) &  o = CXXTEST_STD(cout),
const char *  preLine = ":",
const char *  postLine = "" 
)
inline

Definition at line 31 of file ErrorPrinter.h.

31 :", const char *postLine = "" ) :
32 ErrorFormatter( new Adapter(o), preLine, postLine ) {}

◆ ~ErrorPrinter()

virtual CxxTest::ErrorPrinter::~ErrorPrinter ( )
inlinevirtual

Definition at line 33 of file ErrorPrinter.h.

33{ delete outputStream(); }
OutputStream * outputStream() const

The documentation for this class was generated from the following file: