wibble 1.1
Public Types | Public Member Functions | Public Attributes | List of all members
tut::test_result Struct Reference

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

#include <tut.h>

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

◆ result_type

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

◆ test_result() [1/3]

tut::test_result::test_result ( )
inline

Default constructor.

◆ test_result() [2/3]

tut::test_result::test_result ( const std::string &  grp,
int  pos,
result_type  res 
)
inline

Constructor.

◆ test_result() [3/3]

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_typeid

std::string tut::test_result::exception_typeid

◆ group

std::string tut::test_result::group

◆ message

std::string tut::test_result::message

Exception message for failed test.

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

◆ result

result_type tut::test_result::result

◆ test

int tut::test_result::test

The documentation for this struct was generated from the following file: