wibble 1.1
Public Member Functions | Public Attributes | List of all members
tut::reporter Class Reference

Default TUT callback handler. More...

#include <tut_reporter.h>

Inheritance diagram for tut::reporter:
Inheritance graph
[legend]
Collaboration diagram for tut::reporter:
Collaboration graph
[legend]

Public Member Functions

 reporter ()
 
 reporter (std::ostream &out)
 
void run_started ()
 Called when new test run started.
 
void test_completed (const tut::test_result &tr)
 Called when a test finished.
 
void run_completed ()
 Called when all tests in run completed.
 
bool all_ok () const
 
- Public Member Functions inherited from tut::callback
virtual ~callback ()
 Virtual destructor is a must for subclassed types.
 
virtual void group_started (const std::string &)
 Called when a group started.
 
virtual void group_completed (const std::string &)
 Called when a group is completed.
 

Public Attributes

int ok_count
 
int exceptions_count
 
int failures_count
 
int terminations_count
 
int warnings_count
 

Detailed Description

Default TUT callback handler.

Constructor & Destructor Documentation

◆ reporter() [1/2]

tut::reporter::reporter ( )
inline

◆ reporter() [2/2]

tut::reporter::reporter ( std::ostream &  out)
inline

Member Function Documentation

◆ all_ok()

bool tut::reporter::all_ok ( ) const
inline

◆ run_completed()

void tut::reporter::run_completed ( )
inlinevirtual

◆ run_started()

void tut::reporter::run_started ( )
inlinevirtual

Called when new test run started.

Reimplemented from tut::callback.

◆ test_completed()

void tut::reporter::test_completed ( const tut::test_result )
inlinevirtual

Member Data Documentation

◆ exceptions_count

int tut::reporter::exceptions_count

Referenced by run_completed(), and test_completed().

◆ failures_count

int tut::reporter::failures_count

Referenced by run_completed(), and test_completed().

◆ ok_count

int tut::reporter::ok_count

Referenced by run_completed(), and test_completed().

◆ terminations_count

int tut::reporter::terminations_count

Referenced by run_completed(), and test_completed().

◆ warnings_count

int tut::reporter::warnings_count

Referenced by run_completed(), and test_completed().


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