CPUnit 0.95 (beta)
The REAL C++ port of JUnit.
|
#include <cpunit_ExecutionReport.hpp>
Public Types | |
enum | ExecutionResult { OK, FAILURE, ERROR } |
Public Member Functions | |
ExecutionReport () | |
ExecutionReport (const ExecutionResult _t, const std::string _msg, const RegInfo &_test, const double t=.0) | |
ExecutionReport (const ExecutionReport &o) | |
virtual | ~ExecutionReport () |
ExecutionReport & | operator= (const ExecutionReport &o) |
ExecutionResult | get_execution_result () const |
const std::string & | get_message () const |
const RegInfo & | get_test () const |
void | set_time_spent (const double t) |
double | get_time_spent () const |
Static Public Member Functions | |
static std::string | translate (const ExecutionResult r) |
Private Member Functions | |
void | check_state () const |
Private Attributes | |
ExecutionResult | t |
std::string | error_message |
const RegInfo * | test |
double | time_spent |
Definition at line 42 of file cpunit_ExecutionReport.hpp.
Definition at line 45 of file cpunit_ExecutionReport.hpp.
cpunit::ExecutionReport::ExecutionReport | ( | ) |
Definition at line 34 of file cpunit_ExecutionReport.cpp.
cpunit::ExecutionReport::ExecutionReport | ( | const ExecutionResult | _t, |
const std::string | _msg, | ||
const RegInfo & | _test, | ||
const double | t = .0 |
||
) |
Definition at line 41 of file cpunit_ExecutionReport.cpp.
cpunit::ExecutionReport::ExecutionReport | ( | const ExecutionReport & | o | ) |
Definition at line 48 of file cpunit_ExecutionReport.cpp.
cpunit::ExecutionReport::~ExecutionReport | ( | ) | [virtual] |
Definition at line 55 of file cpunit_ExecutionReport.cpp.
void cpunit::ExecutionReport::check_state | ( | ) | const [private] |
Definition at line 70 of file cpunit_ExecutionReport.cpp.
cpunit::ExecutionReport::ExecutionResult cpunit::ExecutionReport::get_execution_result | ( | ) | const |
Definition at line 77 of file cpunit_ExecutionReport.cpp.
const std::string & cpunit::ExecutionReport::get_message | ( | ) | const |
Definition at line 83 of file cpunit_ExecutionReport.cpp.
const cpunit::RegInfo & cpunit::ExecutionReport::get_test | ( | ) | const |
Definition at line 89 of file cpunit_ExecutionReport.cpp.
double cpunit::ExecutionReport::get_time_spent | ( | ) | const |
Definition at line 100 of file cpunit_ExecutionReport.cpp.
cpunit::ExecutionReport & cpunit::ExecutionReport::operator= | ( | const ExecutionReport & | o | ) |
Definition at line 59 of file cpunit_ExecutionReport.cpp.
void cpunit::ExecutionReport::set_time_spent | ( | const double | t | ) |
Definition at line 95 of file cpunit_ExecutionReport.cpp.
std::string cpunit::ExecutionReport::translate | ( | const ExecutionResult | r | ) | [static] |
Definition at line 107 of file cpunit_ExecutionReport.cpp.
std::string cpunit::ExecutionReport::error_message [private] |
Definition at line 53 of file cpunit_ExecutionReport.hpp.
ExecutionResult cpunit::ExecutionReport::t [private] |
Definition at line 52 of file cpunit_ExecutionReport.hpp.
const RegInfo* cpunit::ExecutionReport::test [private] |
Definition at line 54 of file cpunit_ExecutionReport.hpp.
double cpunit::ExecutionReport::time_spent [private] |
Definition at line 55 of file cpunit_ExecutionReport.hpp.