Return type of runned test/test group. More...
#include <tut.h>
Public Types | |
enum | result_type { ok, fail, ex, warn, term } |
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 | |
Public Member Functions | |
test_result () | |
Default constructor. | |
test_result (const std::string &grp, int pos, result_type res) | |
Constructor. | |
test_result (const std::string &grp, int pos, result_type res, const std::exception &ex) | |
Constructor with exception. | |
Data Fields | |
std::string | group |
Test group name. | |
int | test |
Test number in group. | |
result_type | result |
std::string | message |
Exception message for failed test. | |
std::string | exception_typeid |
Return type of runned test/test group.
For test: contains result of test and, possible, message for failure or exception.