|
| | DDTest ()=delete |
| | Default constructor. More...
|
| |
| | DDTest (const DDTest ©)=delete |
| | Copy constructor. More...
|
| |
| DDTest & | operator= (const DDTest ©)=delete |
| | Assignment operator. More...
|
| |
| | DDTest (const std::string &testname, std::ostream &stream=std::cout) |
| |
| | ~DDTest () |
| |
| template<class V1 , class V2 > |
| void | operator() (const V1 &v1, const V2 &v2, const std::string &name) |
| |
| template<class Cond > |
| void | operator() (const Cond &c, const std::string &name) |
| |
| void | log (const std::string &msg) |
| |
| void | pass (const std::string &msg) |
| |
| void | error (const std::string &msg) |
| |
| void | fatal_error (const std::string &msg) |
| |
| const char * | last_test_status () |
| |
| | DDTest ()=delete |
| | Default constructor. More...
|
| |
| | DDTest (const DDTest ©)=delete |
| | Copy constructor. More...
|
| |
| DDTest & | operator= (const DDTest ©)=delete |
| | Assignment operator. More...
|
| |
| | DDTest (const std::string &testname, std::ostream &stream=std::cout) |
| |
| | ~DDTest () |
| |
| template<class V1 , class V2 > |
| void | operator() (const V1 &v1, const V2 &v2, const std::string &name) |
| |
| template<class Cond > |
| void | operator() (const Cond &c, const std::string &name) |
| |
| void | log (const std::string &msg) |
| |
| void | pass (const std::string &msg) |
| |
| void | error (const std::string &msg) |
| |
| void | fatal_error (const std::string &msg) |
| |
| const char * | last_test_status () |
| |
Simple class for defining unit tests.
Use in main program that is added as a test to ctest:
DDTest test = DDTest( "example" ) ; test.log( "example test" ); test( "Example", "Example", "example test - string comparison " ); // this test will pass test( "Example", "BadExample", "example test - string comparison " ); // this test will fail
- Author
- F.Gaede, DESY, 2014 based on original version from J.Engels
Definition at line 21 of file DDTest.h.