tut Namespace Reference |
Classes | |
struct | bad_ctor |
struct | callback |
class | console_reporter |
class | cppunit_reporter |
struct | failure |
struct | group_base |
struct | no_such_group |
struct | no_such_test |
class | restartable_wrapper |
struct | rethrown |
struct | seh |
struct | skipped |
class | test_group |
struct | test_group_posix |
class | test_object |
struct | test_object_posix |
struct | test_result |
struct | test_result_posix |
class | test_runner |
class | test_runner_singleton |
struct | tests_registerer |
struct | tests_registerer< Test, Group, 0 > |
struct | tut_error |
struct | warning |
class | xml_reporter |
JUnit XML TUT reporter. More... | |
Typedefs | |
typedef std::set< callback * > | callbacks |
typedef std::vector< std::string > | groupnames |
typedef console_reporter | reporter |
Functions | |
template<typename T , typename U > | |
void | ensure_close (const char *msg, const T &actual, const T &expected, const U &tolerance) |
template<typename T , typename Tolerance > | |
void | ensure_close (const T &actual, const T &expected, const Tolerance &tolerance) |
template<typename T , typename U > | |
void | ensure_close_fraction (const char *msg, const T &actual, const T &expected, const U &fraction) |
template<typename T > | |
void | ensure_close_fraction (const char *msg, const T &actual, const T &expected, const int &tolerance) |
template<typename T , typename Tolerance > | |
void | ensure_close_fraction (const T &actual, const T &expected, const Tolerance &fraction) |
bool | tut_main (int argc, const char *const *const argv, std::ostream &os=std::cerr) |
template<typename T > | |
std::string | type_name (const T &t) |
Variables | |
test_runner_singleton | runner |
Additional ensures for scientific/engineering applications.
Template Unit Tests Framework for C++. http://tut.dozen.ru
Optional restartable wrapper for test_runner.
Allows to restart test runs finished due to abnormal test application termination (such as segmentation fault or math error).
typedef std::vector<std::string> tut::groupnames |
Typedef for runner::list_groups()
|
inline |
Helper function to make test binaries simpler.
Example of basic usage follows.
It is also possible to do some generic initialization before running any tests and cleanup before exiting application. Note that tut_main can throw tut::no_such_group or tut::no_such_test.
References tut::test_runner::list_groups(), tut::test_runner::run_test(), and tut::test_runner::run_tests().
All Rights Reserved. Generated on Wed Dec 18 2013 11:19:52 for TUT by doxygen 1.8.5 |