#include <tut.h>
For test: contains result of test and, possible, message for failure or exception.
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. | |
| 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. | |
Public Attributes | |
| 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 |
| tut::test_result::test_result | ( | ) | [inline] |
Default constructor.
| tut::test_result::test_result | ( | const std::string & | grp, | |
| int | pos, | |||
| result_type | res | |||
| ) | [inline] |
Constructor.
| tut::test_result::test_result | ( | const std::string & | grp, | |
| int | pos, | |||
| result_type | res, | |||
| const std::exception & | ex | |||
| ) | [inline] |
Constructor with exception.
| 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().
Test number in group.
Referenced by tut::util::deserialize(), tut::reporter::run_completed(), and tut::util::serialize().
| std::string tut::test_result::message |
Exception message for failed test.
Referenced by tut::util::deserialize(), tut::reporter::run_completed(), and tut::util::serialize().
| std::string tut::test_result::exception_typeid |
Referenced by tut::reporter::run_completed().
1.5.6