tut::restartable_wrapper Class Reference

#include <tut_restartable.h>

Collaboration diagram for tut::restartable_wrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 restartable_wrapper (const std::string &dir=".")
void register_group (const std::string &name, group_base *gr)
void set_callback (callback *cb)
callbackget_callback () const
groupnames list_groups () const
void run_tests () const

Private Member Functions

void invoke_callback_ () const
void register_test_ (const test_result &tr) const
void register_execution_ (const std::string &grp, int test) const
void truncate_ () const
void read_log_ (std::string &fail_group, int &fail_test) const

Private Attributes

test_runnerrunner_
callbackcallback_
std::string dir_
std::string log_
std::string jrn_

Detailed Description

Restartable test runner wrapper.

Definition at line 136 of file tut_restartable.h.


Constructor & Destructor Documentation

tut::restartable_wrapper::restartable_wrapper ( const std::string &  dir = "."  )  [inline]

Default constructor.

Parameters:
dir Directory where to search/put log and journal files

Definition at line 150 of file tut_restartable.h.

References dir_, jrn_, and log_.


Member Function Documentation

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

Returns callback object.

Definition at line 177 of file tut_restartable.h.

References tut::test_runner::get_callback(), and runner_.

Here is the call graph for this function:

void tut::restartable_wrapper::invoke_callback_ (  )  const [inline, private]

Shows results from journal file.

Definition at line 257 of file tut_restartable.h.

References callback_, tut::util::deserialize(), tut::test_runner::get_callback(), jrn_, tut::callback::run_completed(), tut::callback::run_started(), runner_, tut::test_runner::set_callback(), and tut::callback::test_completed().

Referenced by run_tests().

Here is the call graph for this function:

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

Returns list of known test groups.

Definition at line 185 of file tut_restartable.h.

References tut::test_runner::list_groups(), and runner_.

Referenced by run_tests().

Here is the call graph for this function:

void tut::restartable_wrapper::read_log_ ( std::string &  fail_group,
int &  fail_test 
) const [inline, private]

Read log file

Definition at line 316 of file tut_restartable.h.

References log_, register_test_(), tut::test_result::term, truncate_(), and tut::util::unescape().

Referenced by run_tests().

Here is the call graph for this function:

void tut::restartable_wrapper::register_execution_ ( const std::string &  grp,
int  test 
) const [inline, private]

Mark the fact test going to be executed

Definition at line 296 of file tut_restartable.h.

References tut::util::escape(), and log_.

Referenced by run_tests().

Here is the call graph for this function:

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

Stores another group for getting by name.

Definition at line 161 of file tut_restartable.h.

References tut::test_runner::register_group(), and runner_.

Here is the call graph for this function:

void tut::restartable_wrapper::register_test_ ( const test_result tr  )  const [inline, private]

Register test into journal.

Definition at line 285 of file tut_restartable.h.

References jrn_, and tut::util::serialize().

Referenced by read_log_(), and run_tests().

Here is the call graph for this function:

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

Runs all tests in all groups.

Definition at line 193 of file tut_restartable.h.

References invoke_callback_(), list_groups(), read_log_(), register_execution_(), register_test_(), tut::test_runner::run_test(), runner_, and truncate_().

Here is the call graph for this function:

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

Stores callback object.

Definition at line 169 of file tut_restartable.h.

References callback_.

void tut::restartable_wrapper::truncate_ (  )  const [inline, private]

Truncate tests.

Definition at line 307 of file tut_restartable.h.

References jrn_, and log_.

Referenced by read_log_(), and run_tests().


Member Data Documentation

callback* tut::restartable_wrapper::callback_ [private]

Definition at line 139 of file tut_restartable.h.

Referenced by invoke_callback_(), and set_callback().

std::string tut::restartable_wrapper::dir_ [private]

Definition at line 141 of file tut_restartable.h.

Referenced by restartable_wrapper().

std::string tut::restartable_wrapper::jrn_ [private]

Definition at line 143 of file tut_restartable.h.

Referenced by invoke_callback_(), register_test_(), restartable_wrapper(), and truncate_().

std::string tut::restartable_wrapper::log_ [private]

Definition at line 142 of file tut_restartable.h.

Referenced by read_log_(), register_execution_(), restartable_wrapper(), and truncate_().

test_runner& tut::restartable_wrapper::runner_ [private]

Definition at line 138 of file tut_restartable.h.

Referenced by get_callback(), invoke_callback_(), list_groups(), register_group(), 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