#include <tut.h>
Public Types | |
ok | |
fail | |
ex | |
warn | |
term | |
enum | result_type { ok, fail, ex, warn, term } |
Public Member Functions | |
test_result () | |
test_result (const std::string &grp, int pos, result_type res) | |
test_result (const std::string &grp, int pos, result_type res, const std::exception &ex) | |
Public Attributes | |
std::string | group |
int | test |
result_type | result |
std::string | message |
std::string | exception_typeid |
For test: contains result of test and, possible, message for failure or exception.
Definition at line 95 of file tut.h.
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
tut::test_result::test_result | ( | ) | [inline] |
tut::test_result::test_result | ( | const std::string & | grp, | |
int | pos, | |||
result_type | res | |||
) | [inline] |
tut::test_result::test_result | ( | const std::string & | grp, | |
int | pos, | |||
result_type | res, | |||
const std::exception & | ex | |||
) | [inline] |
std::string tut::test_result::exception_typeid |
std::string tut::test_result::group |
Test group name.
Definition at line 100 of file tut.h.
Referenced by tut::util::deserialize(), tut::util::serialize(), and tut::reporter::test_completed().
std::string tut::test_result::message |
Exception message for failed test.
Definition at line 120 of file tut.h.
Referenced by tut::util::deserialize(), and tut::util::serialize().
Definition at line 115 of file tut.h.
Referenced by tut::util::deserialize(), tut::util::serialize(), and tut::reporter::test_completed().
Test number in group.
Definition at line 105 of file tut.h.
Referenced by tut::util::deserialize(), and tut::util::serialize().