wibble
1.1
|
Return type of runned test/test group. More...
#include <tut.h>
Public Types | |
enum | result_type { ok , fail , ex , warn , term , ex_ctor } |
ok - test finished successfully fail - test failed with ensure() or fail() methods ex - test throwed an exceptions warn - test finished successfully, but test destructor throwed term - test forced test application to terminate abnormally More... | |
Public Member Functions | |
test_result () | |
Default constructor. More... | |
test_result (const std::string &grp, int pos, result_type res) | |
Constructor. More... | |
test_result (const std::string &grp, int pos, result_type res, const std::exception &ex) | |
Constructor with exception. More... | |
Public Attributes | |
std::string | group |
Test group name. More... | |
int | test |
Test number in group. More... | |
result_type | result |
std::string | message |
Exception message for failed test. More... | |
std::string | exception_typeid |
Return type of runned test/test group.
For test: contains result of test and, possible, message for failure or exception.
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Constructor with exception.
std::string tut::test_result::exception_typeid |
Referenced by tut::reporter::run_completed().
std::string tut::test_result::group |
Test group name.
Referenced by tut::util::deserialize(), tut::reporter::run_completed(), tut::util::serialize(), and tut::reporter::test_completed().
std::string tut::test_result::message |
Exception message for failed test.
Referenced by tut::util::deserialize(), tut::reporter::run_completed(), and tut::util::serialize().
result_type tut::test_result::result |
int tut::test_result::test |
Test number in group.
Referenced by tut::util::deserialize(), tut::reporter::run_completed(), and tut::util::serialize().