CPUnit 0.7 (beta)
The REAL C++ port of JUnit.
|
#include <unittest_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 float t=.0f) | |
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 float t) |
float | 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 |
float | time_spent |
Definition at line 42 of file unittest_ExecutionReport.hpp.
Definition at line 45 of file unittest_ExecutionReport.hpp.
unittest::ExecutionReport::ExecutionReport | ( | ) |
Definition at line 34 of file unittest_ExecutionReport.cpp.
unittest::ExecutionReport::ExecutionReport | ( | const ExecutionResult | _t, |
const std::string | _msg, | ||
const RegInfo & | _test, | ||
const float | t = .0f |
||
) |
Definition at line 41 of file unittest_ExecutionReport.cpp.
unittest::ExecutionReport::ExecutionReport | ( | const ExecutionReport & | o | ) |
Definition at line 48 of file unittest_ExecutionReport.cpp.
unittest::ExecutionReport::~ExecutionReport | ( | ) | [virtual] |
Definition at line 55 of file unittest_ExecutionReport.cpp.
void unittest::ExecutionReport::check_state | ( | ) | const [private] |
Definition at line 70 of file unittest_ExecutionReport.cpp.
unittest::ExecutionReport::ExecutionResult unittest::ExecutionReport::get_execution_result | ( | ) | const |
Definition at line 77 of file unittest_ExecutionReport.cpp.
const std::string & unittest::ExecutionReport::get_message | ( | ) | const |
Definition at line 83 of file unittest_ExecutionReport.cpp.
const unittest::RegInfo & unittest::ExecutionReport::get_test | ( | ) | const |
Definition at line 89 of file unittest_ExecutionReport.cpp.
float unittest::ExecutionReport::get_time_spent | ( | ) | const |
Definition at line 100 of file unittest_ExecutionReport.cpp.
unittest::ExecutionReport & unittest::ExecutionReport::operator= | ( | const ExecutionReport & | o | ) |
Definition at line 59 of file unittest_ExecutionReport.cpp.
void unittest::ExecutionReport::set_time_spent | ( | const float | t | ) |
Definition at line 95 of file unittest_ExecutionReport.cpp.
std::string unittest::ExecutionReport::translate | ( | const ExecutionResult | r | ) | [static] |
Definition at line 107 of file unittest_ExecutionReport.cpp.
std::string unittest::ExecutionReport::error_message [private] |
Definition at line 53 of file unittest_ExecutionReport.hpp.
ExecutionResult unittest::ExecutionReport::t [private] |
Definition at line 52 of file unittest_ExecutionReport.hpp.
const RegInfo* unittest::ExecutionReport::test [private] |
Definition at line 54 of file unittest_ExecutionReport.hpp.
float unittest::ExecutionReport::time_spent [private] |
Definition at line 55 of file unittest_ExecutionReport.hpp.