My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
CxxTest::TeeListener Class Reference

#include <TeeListener.h>

Public Member Functions

 TeeListener ()
 
virtual ~TeeListener ()
 
void setFirst (TestListener &first)
 
void setSecond (TestListener &second)
 
void enterWorld (const WorldDescription &d)
 
void enterSuite (const SuiteDescription &d)
 
void enterTest (const TestDescription &d)
 
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)
 
void leaveTest (const TestDescription &d)
 
void leaveSuite (const SuiteDescription &d)
 
void leaveWorld (const WorldDescription &d)
 
- 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 &)
 

Private Attributes

TestListener_first
 
TestListener_second
 
TestListener _dummy
 

Detailed Description

Definition at line 13 of file TeeListener.h.

Constructor & Destructor Documentation

◆ TeeListener()

CxxTest::TeeListener::TeeListener ( )
inline

Definition at line 16 of file TeeListener.h.

17 {
20 }
void setFirst(TestListener &first)
Definition: TeeListener.h:26
TestListener _dummy
Definition: TeeListener.h:177
void setSecond(TestListener &second)
Definition: TeeListener.h:31

◆ ~TeeListener()

virtual CxxTest::TeeListener::~TeeListener ( )
inlinevirtual

Definition at line 22 of file TeeListener.h.

23 {
24 }

Member Function Documentation

◆ enterSuite()

void CxxTest::TeeListener::enterSuite ( const SuiteDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 42 of file TeeListener.h.

43 {
44 _first->enterSuite( d );
45 _second->enterSuite( d );
46 }
TestListener * _first
Definition: TeeListener.h:176
TestListener * _second
Definition: TeeListener.h:176
virtual void enterSuite(const SuiteDescription &)
Definition: TestListener.h:24

◆ enterTest()

void CxxTest::TeeListener::enterTest ( const TestDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 48 of file TeeListener.h.

49 {
50 _first->enterTest( d );
51 _second->enterTest( d );
52 }
virtual void enterTest(const TestDescription &)
Definition: TestListener.h:25

◆ enterWorld()

void CxxTest::TeeListener::enterWorld ( const WorldDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 36 of file TeeListener.h.

37 {
38 _first->enterWorld( d );
39 _second->enterWorld( d );
40 }
virtual void enterWorld(const WorldDescription &)
Definition: TestListener.h:23

◆ failedAssert()

void CxxTest::TeeListener::failedAssert ( const char *  file,
unsigned  line,
const char *  expression 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 72 of file TeeListener.h.

73 {
74 _first->failedAssert( file, line, expression );
75 _second->failedAssert( file, line, expression );
76 }
virtual void failedAssert(const char *, unsigned, const char *)
Definition: TestListener.h:32

◆ failedAssertDelta()

void CxxTest::TeeListener::failedAssertDelta ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  dStr,
const char *  x,
const char *  y,
const char *  d 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 95 of file TeeListener.h.

98 {
99 _first->failedAssertDelta( file, line, xStr, yStr, dStr, x, y, d );
100 _second->failedAssertDelta( file, line, xStr, yStr, dStr, x, y, d );
101 }
Variable x
Definition: cfModGcd.cc:4082
virtual void failedAssertDelta(const char *, unsigned, const char *, const char *, const char *, const char *, const char *, const char *)
Definition: TestListener.h:41
const CanonicalForm int const CFList const Variable & y
Definition: facAbsFact.cc:53

◆ failedAssertDiffers()

void CxxTest::TeeListener::failedAssertDiffers ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  value 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 103 of file TeeListener.h.

106 {
107 _first->failedAssertDiffers( file, line, xStr, yStr, value );
108 _second->failedAssertDiffers( file, line, xStr, yStr, value );
109 }
virtual void failedAssertDiffers(const char *, unsigned, const char *, const char *, const char *)
Definition: TestListener.h:45

◆ failedAssertEquals()

void CxxTest::TeeListener::failedAssertEquals ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  x,
const char *  y 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 78 of file TeeListener.h.

81 {
82 _first->failedAssertEquals( file, line, xStr, yStr, x, y );
83 _second->failedAssertEquals( file, line, xStr, yStr, x, y );
84 }
virtual void failedAssertEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:34

◆ failedAssertLessThan()

void CxxTest::TeeListener::failedAssertLessThan ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  x,
const char *  y 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 111 of file TeeListener.h.

114 {
115 _first->failedAssertLessThan( file, line, xStr, yStr, x, y );
116 _second->failedAssertLessThan( file, line, xStr, yStr, x, y );
117 }
virtual void failedAssertLessThan(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:48

◆ failedAssertLessThanEquals()

void CxxTest::TeeListener::failedAssertLessThanEquals ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  x,
const char *  y 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 119 of file TeeListener.h.

122 {
123 _first->failedAssertLessThanEquals( file, line, xStr, yStr, x, y );
124 _second->failedAssertLessThanEquals( file, line, xStr, yStr, x, y );
125 }
virtual void failedAssertLessThanEquals(const char *, unsigned, const char *, const char *, const char *, const char *)
Definition: TestListener.h:51

◆ failedAssertPredicate()

void CxxTest::TeeListener::failedAssertPredicate ( const char *  file,
unsigned  line,
const char *  predicate,
const char *  xStr,
const char *  x 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 127 of file TeeListener.h.

129 {
130 _first->failedAssertPredicate( file, line, predicate, xStr, x );
131 _second->failedAssertPredicate( file, line, predicate, xStr, x );
132 }
virtual void failedAssertPredicate(const char *, unsigned, const char *, const char *, const char *)
Definition: TestListener.h:54

◆ failedAssertRelation()

void CxxTest::TeeListener::failedAssertRelation ( const char *  file,
unsigned  line,
const char *  relation,
const char *  xStr,
const char *  yStr,
const char *  x,
const char *  y 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 134 of file TeeListener.h.

137 {
138 _first->failedAssertRelation( file, line, relation, xStr, yStr, x, y );
139 _second->failedAssertRelation( file, line, relation, xStr, yStr, x, y );
140 }
virtual void failedAssertRelation(const char *, unsigned, const char *, const char *, const char *, const char *, const char *)
Definition: TestListener.h:56

◆ failedAssertSameData()

void CxxTest::TeeListener::failedAssertSameData ( const char *  file,
unsigned  line,
const char *  xStr,
const char *  yStr,
const char *  sizeStr,
const void *  x,
const void *  y,
unsigned  size 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 86 of file TeeListener.h.

90 {
91 _first->failedAssertSameData( file, line, xStr, yStr, sizeStr, x, y, size );
92 _second->failedAssertSameData( file, line, xStr, yStr, sizeStr, x, y, size );
93 }
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
virtual void failedAssertSameData(const char *, unsigned, const char *, const char *, const char *, const void *, const void *, unsigned)
Definition: TestListener.h:37

◆ failedAssertThrows()

void CxxTest::TeeListener::failedAssertThrows ( const char *  file,
unsigned  line,
const char *  expression,
const char *  type,
bool  otherThrown 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 142 of file TeeListener.h.

145 {
146 _first->failedAssertThrows( file, line, expression, type, otherThrown );
147 _second->failedAssertThrows( file, line, expression, type, otherThrown );
148 }
virtual void failedAssertThrows(const char *, unsigned, const char *, const char *, bool)
Definition: TestListener.h:59

◆ failedAssertThrowsNot()

void CxxTest::TeeListener::failedAssertThrowsNot ( const char *  file,
unsigned  line,
const char *  expression 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 150 of file TeeListener.h.

152 {
153 _first->failedAssertThrowsNot( file, line, expression );
154 _second->failedAssertThrowsNot( file, line, expression );
155 }
virtual void failedAssertThrowsNot(const char *, unsigned, const char *)
Definition: TestListener.h:62

◆ failedTest()

void CxxTest::TeeListener::failedTest ( const char *  file,
unsigned  line,
const char *  expression 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 66 of file TeeListener.h.

67 {
68 _first->failedTest( file, line, expression );
69 _second->failedTest( file, line, expression );
70 }
virtual void failedTest(const char *, unsigned, const char *)
Definition: TestListener.h:30

◆ leaveSuite()

void CxxTest::TeeListener::leaveSuite ( const SuiteDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 163 of file TeeListener.h.

164 {
165 _first->leaveSuite(d);
167 }
virtual void leaveSuite(const SuiteDescription &)
Definition: TestListener.h:65

◆ leaveTest()

void CxxTest::TeeListener::leaveTest ( const TestDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 157 of file TeeListener.h.

158 {
159 _first->leaveTest(d);
160 _second->leaveTest(d);
161 }
virtual void leaveTest(const TestDescription &)
Definition: TestListener.h:64

◆ leaveWorld()

void CxxTest::TeeListener::leaveWorld ( const WorldDescription d)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 169 of file TeeListener.h.

170 {
171 _first->leaveWorld(d);
173 }
virtual void leaveWorld(const WorldDescription &)
Definition: TestListener.h:66

◆ setFirst()

void CxxTest::TeeListener::setFirst ( TestListener first)
inline

Definition at line 26 of file TeeListener.h.

27 {
28 _first = &first;
29 }

◆ setSecond()

void CxxTest::TeeListener::setSecond ( TestListener second)
inline

Definition at line 31 of file TeeListener.h.

32 {
33 _second = &second;
34 }

◆ trace()

void CxxTest::TeeListener::trace ( const char *  file,
unsigned  line,
const char *  expression 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 54 of file TeeListener.h.

55 {
56 _first->trace( file, line, expression );
57 _second->trace( file, line, expression );
58 }
virtual void trace(const char *, unsigned, const char *)
Definition: TestListener.h:26

◆ warning()

void CxxTest::TeeListener::warning ( const char *  file,
unsigned  line,
const char *  expression 
)
inlinevirtual

Reimplemented from CxxTest::TestListener.

Definition at line 60 of file TeeListener.h.

61 {
62 _first->warning( file, line, expression );
63 _second->warning( file, line, expression );
64 }
virtual void warning(const char *, unsigned, const char *)
Definition: TestListener.h:28

Field Documentation

◆ _dummy

TestListener CxxTest::TeeListener::_dummy
private

Definition at line 177 of file TeeListener.h.

◆ _first

TestListener* CxxTest::TeeListener::_first
private

Definition at line 176 of file TeeListener.h.

◆ _second

TestListener * CxxTest::TeeListener::_second
private

Definition at line 176 of file TeeListener.h.


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