tut::test_result Struct Reference

Return type of runned test/test group. More...

#include <tut.h>

List of all members.

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

Detailed Description

Return type of runned test/test group.

For test: contains result of test and, possible, message for failure or exception.


Member Enumeration Documentation

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

Enumerator:
ok 
fail 
ex 
warn 
term 
ex_ctor 

Constructor & Destructor Documentation

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.


Member Data Documentation

Exception message for failed test.

Referenced by tut::util::deserialize(), tut::reporter::run_completed(), and tut::util::serialize().


The documentation for this struct was generated from the following file:
Generated on Wed May 12 10:33:13 2010 for wibble by  doxygen 1.6.3