tut::test_result Struct Reference

#include <tut.h>

List of all members.

Public Types

 ok
 fail
 ex
 warn
 term
enum  result_type {
  ok, fail, ex, warn,
  term
}

Public Member Functions

 test_result ()
 test_result (const std::string &grp, int pos, result_type res)
 test_result (const std::string &grp, int pos, result_type res, const std::exception &ex)

Public Attributes

std::string group
int test
result_type result
std::string message
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.

Definition at line 95 of file tut.h.


Member Enumeration Documentation

enum tut::test_result::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 

Definition at line 114 of file tut.h.


Constructor & Destructor Documentation

tut::test_result::test_result (  )  [inline]

Default constructor.

Definition at line 126 of file tut.h.

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

Constructor.

Definition at line 134 of file tut.h.

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

Constructor with exception.

Definition at line 142 of file tut.h.


Member Data Documentation

std::string tut::test_result::exception_typeid

Definition at line 121 of file tut.h.

std::string tut::test_result::group

Test group name.

Definition at line 100 of file tut.h.

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

std::string tut::test_result::message

Exception message for failed test.

Definition at line 120 of file tut.h.

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

result_type tut::test_result::result

Definition at line 115 of file tut.h.

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

int tut::test_result::test

Test number in group.

Definition at line 105 of file tut.h.

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


The documentation for this struct was generated from the following file:
Generated on Fri Oct 26 13:35:18 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7