![]() |
tut::test_runner Class Reference |
Public Member Functions | |
test_runner () | |
void | clear_callbacks () |
void | erase_callback (callback *cb) |
const callbacks & | get_callbacks () const |
void | insert_callback (callback *cb) |
const groupnames | list_groups () const |
void | register_group (const std::string &name, group_base *gr) |
bool | run_test (const std::string &group_name, int n, test_result &tr) const |
void | run_tests () const |
void | run_tests (const std::string &group_name) const |
void | set_callback (callback *cb) |
void | set_callbacks (const callbacks &cb) |
Protected Types | |
typedef groups::const_iterator | const_iterator |
typedef std::map< std::string, group_base * > | groups |
typedef groups::iterator | iterator |
Protected Attributes | |
callbacks | callbacks_ |
groups | groups_ |
Friends | |
class | restartable_wrapper |
Test runner.
|
inline |
Constructor
|
inline |
Remove all callback objects.
Referenced by set_callback().
|
inline |
Remove callback object.
cb | callback to remove |
|
inline |
Returns callback list.
|
inline |
|
inline |
Returns list of known test groups.
Referenced by tut::restartable_wrapper::list_groups(), and tut::tut_main().
|
inline |
Stores another group for getting by name.
name | new group object |
gr | new callback object |
Referenced by tut::restartable_wrapper::register_group(), and tut::test_group< class, int >::test_group().
|
inline |
Runs one test in specified group.
group_name | group to test |
n | run case in test |
tr | result of this case |
Referenced by tut::restartable_wrapper::run_tests(), and tut::tut_main().
|
inline |
Runs all tests in all groups.
Referenced by tut::tut_main().
|
inline |
Runs all tests in specified group.
group_name | group to test |
|
inline |
Stores one callback object.
cb | new callback object |
References clear_callbacks(), and insert_callback().
|
inline |
Set callback list.
cb | new callback list |
All Rights Reserved. Generated on Wed Dec 18 2013 11:19:52 for TUT by doxygen 1.8.5 |