tut::test_runner Class Reference

#include <tut.h>

Collaboration diagram for tut::test_runner:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 test_runner ()
void register_group (const std::string &name, group_base *gr)
void set_callback (callback *cb)
callbackget_callback () const
const groupnames list_groups () const
void run_tests () const
void run_tests (const std::string &group_name) const
test_result run_test (const std::string &group_name, int n) const

Protected Types

typedef std::map< std::string,
group_base * > 
groups
typedef groups::iterator iterator
typedef groups::const_iterator const_iterator

Protected Attributes

groups groups_
callback default_callback_
callbackcallback_

Detailed Description

Test runner.

Definition at line 206 of file tut.h.


Member Typedef Documentation

typedef groups::const_iterator tut::test_runner::const_iterator [protected]

Definition at line 211 of file tut.h.

typedef std::map<std::string,group_base*> tut::test_runner::groups [protected]

Definition at line 209 of file tut.h.

typedef groups::iterator tut::test_runner::iterator [protected]

Definition at line 210 of file tut.h.


Constructor & Destructor Documentation

tut::test_runner::test_runner (  )  [inline]

Constructor

Definition at line 221 of file tut.h.


Member Function Documentation

callback& tut::test_runner::get_callback (  )  const [inline]

Returns callback object.

Definition at line 258 of file tut.h.

References callback_.

Referenced by tut::restartable_wrapper::get_callback(), and tut::restartable_wrapper::invoke_callback_().

const groupnames tut::test_runner::list_groups (  )  const [inline]

Returns list of known test groups.

Definition at line 266 of file tut.h.

References groups_.

Referenced by tut::restartable_wrapper::list_groups().

void tut::test_runner::register_group ( const std::string &  name,
group_base gr 
) [inline]

Stores another group for getting by name.

Definition at line 228 of file tut.h.

References groups_.

Referenced by tut::restartable_wrapper::register_group(), and tut::test_group< Data, MaxTestsInGroup >::test_group().

test_result tut::test_runner::run_test ( const std::string &  group_name,
int  n 
) const [inline]

Runs one test in specified group.

Definition at line 346 of file tut.h.

References callback_, groups_, tut::callback::run_completed(), tut::callback::run_started(), and tut::callback::test_completed().

Referenced by tut::restartable_wrapper::run_tests().

Here is the call graph for this function:

void tut::test_runner::run_tests ( const std::string &  group_name  )  const [inline]

Runs all tests in specified group.

Definition at line 315 of file tut.h.

References callback_, groups_, tut::callback::run_completed(), tut::callback::run_started(), and tut::callback::test_completed().

Here is the call graph for this function:

void tut::test_runner::run_tests (  )  const [inline]

Runs all tests in all groups.

Parameters:
callback Callback object if exists; null otherwise

Definition at line 283 of file tut.h.

References callback_, groups_, tut::callback::run_completed(), tut::callback::run_started(), and tut::callback::test_completed().

Here is the call graph for this function:

void tut::test_runner::set_callback ( callback cb  )  [inline]

Stores callback object.

Definition at line 250 of file tut.h.

References callback_, and default_callback_.

Referenced by tut::restartable_wrapper::invoke_callback_().


Member Data Documentation

callback* tut::test_runner::callback_ [protected]

Definition at line 215 of file tut.h.

Referenced by get_callback(), run_test(), run_tests(), and set_callback().

callback tut::test_runner::default_callback_ [protected]

Definition at line 214 of file tut.h.

Referenced by set_callback().

groups tut::test_runner::groups_ [protected]

Definition at line 212 of file tut.h.

Referenced by list_groups(), register_group(), run_test(), and run_tests().


The documentation for this class 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