tut logo

tut::test_object< Data > Class Template Reference


Public Member Functions | Public Attributes | Friends | List of all members
tut::test_object< Data > Class Template Reference

#include <tut.hpp>

Inheritance diagram for tut::test_object< Data >:
Inheritance graph
[legend]
Collaboration diagram for tut::test_object< Data >:
Collaboration graph
[legend]

Public Member Functions

 test_object ()
 
const std::string & get_test_group () const
 
int get_test_id () const
 
const std::string & get_test_name () const
 
void set_test_name (const std::string &current_test_name)
 
template<int n>
void test ()
 

Public Attributes

bool called_method_was_a_dummy_test_
 

Friends

template<class D , int M>
class test_group
 

Detailed Description

template<class Data>
class tut::test_object< Data >

Test object. Contains data test run upon and default test method implementation. Inherited from Data to allow tests to access test data as members.

Constructor & Destructor Documentation

template<class Data>
tut::test_object< Data >::test_object ( )
inline

Default constructor

Member Function Documentation

template<class Data>
template<int n>
void tut::test_object< Data >::test ( )
inline

Default do-nothing test.

References tut::test_object< Data >::called_method_was_a_dummy_test_.

Member Data Documentation

template<class Data>
bool tut::test_object< Data >::called_method_was_a_dummy_test_

The flag is set to true by default (dummy) test. Used to detect usused test numbers and avoid unnecessary test object creation which may be time-consuming depending on operations described in Data::Data() and Data::~Data().

Referenced by tut::test_object< Data >::test().


The documentation for this class was generated from the following file:
All Rights Reserved. Generated on Wed Dec 18 2013 11:19:52 for TUT by doxygen 1.8.5