Scale Stack 0.3 Developer Documentation

scalestack::kernel::test_suite< T > Class Template Reference

#include <test.h>

Public Types

typedef std::vector< std::pair
< std::string, std::mem_fun_t
< void, T > > > 
test_cases

Public Member Functions

 test_suite (int argc, const char **argv)
virtual ~test_suite ()
virtual void setup (void)
virtual void teardown (void)
void run (void)
void add_default_threading_service (void)
void add_default_event_service (void)

Protected Attributes

kernel::corecore
test_cases _test_cases

Private Member Functions

 test_suite (const test_suite &)
test_suiteoperator= (const test_suite &)

Private Attributes

int _argc
const char ** _argv

Detailed Description

template<class T>
class scalestack::kernel::test_suite< T >

Definition at line 44 of file test.h.


Member Typedef Documentation

template<class T>
typedef std::vector<std::pair<std::string, std::mem_fun_t<void, T> > > scalestack::kernel::test_suite< T >::test_cases

Definition at line 78 of file test.h.


Constructor & Destructor Documentation

template<class T >
test_suite::test_suite ( int  argc,
const char **  argv 
) [inline]
template<class T >
test_suite::~test_suite (  )  [inline, virtual]

Definition at line 111 of file test.h.

template<class T>
scalestack::kernel::test_suite< T >::test_suite ( const test_suite< T > &   )  [private]

Don't allow copying of objects.


Member Function Documentation

template<class T >
void test_suite::setup ( void   )  [inline, virtual]

Perform any setup before running a test case.

Reimplemented in test_suite, test_suite, test_suite, test_suite, test_suite, test_suite, and test_suite.

Definition at line 116 of file test.h.

template<class T >
void test_suite::teardown ( void   )  [inline, virtual]

Perform any teardown after running a test case.

Definition at line 121 of file test.h.

template<class T >
void test_suite::run ( void   )  [inline]

Run all test cases that have been added to the tests vector.

Definition at line 126 of file test.h.

template<class T >
void test_suite::add_default_threading_service ( void   )  [inline]

Add the default threading service module.

Definition at line 146 of file test.h.

template<class T >
void test_suite::add_default_event_service ( void   )  [inline]

Add the default event service module.

Definition at line 153 of file test.h.

template<class T>
test_suite& scalestack::kernel::test_suite< T >::operator= ( const test_suite< T > &   )  [private]

Don't allow assignment of objects.


Field Documentation

template<class T>
kernel::core* scalestack::kernel::test_suite< T >::core [protected]

Definition at line 82 of file test.h.

template<class T>
test_cases scalestack::kernel::test_suite< T >::_test_cases [protected]

Definition at line 83 of file test.h.

template<class T>
int scalestack::kernel::test_suite< T >::_argc [private]

Definition at line 97 of file test.h.

template<class T>
const char** scalestack::kernel::test_suite< T >::_argv [private]

Definition at line 98 of file test.h.


The documentation for this class was generated from the following file:
Generated on Thu Feb 17 13:10:22 2011 by  doxygen 1.6.3