#include <unittest_decls.h>
Inheritance diagram for Gatherer:
Public Member Functions | |
std::auto_ptr< BaseGatherer > | clone () |
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. |
std::auto_ptr< BaseGatherer > Gatherer::clone | ( | ) | [virtual] |
Create something that acts like this gatherer and can be deleted.
Implements BaseGatherer.
void Gatherer::succeed | ( | const std::string & | n | ) | [virtual] |
Success reporting method.
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.
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.