Gatherer Class Reference

Gathers statistics and prints test results. More...

#include <unittest_decls.h>

Inheritance diagram for Gatherer:

BaseGatherer List of all members.

Public Member Functions

std::auto_ptr< BaseGathererclone ()
 Create something that acts like this gatherer and can be deleted.
void succeed (const std::string &n)
 Success reporting method.
void fail (const std::string &n, const std::string &r)
 Failure reporting method.
void stats ()
 Print statistics on failed and succeeded tests.
int failed_tests ()
 Returns the number of failed tests.

Detailed Description

Gathers statistics and prints test results.


Member Function Documentation

std::auto_ptr< BaseGatherer > Gatherer::clone (  )  [virtual]

Create something that acts like this gatherer and can be deleted.

Returns:
a deletable BaseGatherer

Implements BaseGatherer.

void Gatherer::succeed ( const std::string &  n  )  [virtual]

Success reporting method.

Parameters:
n is the name of the test that succeeded

Implements BaseGatherer.

void Gatherer::fail ( const std::string &  n,
const std::string &  r 
) [virtual]

Failure reporting method.

Parameters:
n is the name of the test that failed
r is a reason for why the test failed

Implements BaseGatherer.

int Gatherer::failed_tests (  ) 

Returns the number of failed tests.

Returns:
the number of failed tests


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1