tut::test_result Struct Reference |
Public Types | |
enum | result_type { ok, fail, ex, warn, term, ex_ctor, rethrown, skipped, dummy } |
Public Member Functions | |
test_result () | |
test_result (const std::string &grp, int pos, const std::string &test_name, result_type res) | |
test_result (const std::string &grp, int pos, const std::string &test_name, result_type res, const std::exception &ex) | |
test_result (const std::string &grp, int pos, const std::string &test_name, result_type res, const std::string &ex_typeid, const std::string &msg) | |
Public Attributes | |
std::string | exception_typeid |
std::string | group |
std::string | message |
std::string | name |
result_type | result |
int | test |
Return type of runned test/test group.
For test: contains result of test and, possible, message for failure or exception.
result of a test
Enumerator | |
---|---|
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 |
|
inline |
Default constructor.
|
inline |
Constructor.
|
inline |
Constructor with exception.
|
inline |
Constructor with typeid.
std::string tut::test_result::group |
Test group name.
Referenced by tut::console_reporter::run_completed(), tut::console_reporter::test_completed(), and tut::xml_reporter::test_completed().
std::string tut::test_result::message |
Exception message for failed test.
Referenced by tut::console_reporter::run_completed(), and tut::test_group< class, int >::run_test_().
std::string tut::test_result::name |
Test name (optional)
Referenced by tut::console_reporter::run_completed(), and tut::test_group< class, int >::run_test_().
int tut::test_result::test |
Test number in group.
Referenced by tut::console_reporter::run_completed().
All Rights Reserved. Generated on Wed Dec 18 2013 11:19:52 for TUT by doxygen 1.8.5 |