#include <TestingFramework.hh>

Classes | |
| struct | TestDeleter |
| class | TestFunc |
| struct | TestRunner |
Public Types | |
| typedef TestingFramework | Self |
| typedef TestFunc * | TestFuncPtr |
| typedef std::vector< TestFuncPtr > | TestSet |
| typedef std::logic_error | verify_error |
Public Member Functions | |
| Self & | begin (std::string _title, const std::string &_info="") |
| Self & | end () |
| size_t | errorCount () const |
| size_t | errorTotal () const |
| size_t | goodCount () const |
| size_t | goodTotal () const |
| Self & | info (const std::ostringstream &_ostr) |
| Self & | info (const std::string &_info) |
| int | run (void) |
| size_t | testCount () const |
| TestingFramework (std::ostream &_os) | |
| size_t | testTotal () const |
| template<typename ValueType > | |
| bool | verify (const ValueType &_rc, const ValueType &_expected, const std::string &_info) |
| size_t | verifyCount () const |
| size_t | verifyTotal () const |
| virtual | ~TestingFramework () |
Protected Member Functions | |
| int | reg (TestFuncPtr _tfptr) |
Private Attributes | |
| size_t | errCount_ |
| size_t | errTotal_ |
| std::ostream & | os_ |
| size_t | testCount_ |
| TestSet | tests_ |
| std::string | testTitle_ |
| size_t | testTotal_ |
| size_t | verifyCount_ |
| size_t | verifyTotal_ |
Friends | |
| class | TestFunc |
Helper class for test programms.
Definition at line 117 of file TestingFramework.hh.
Definition at line 121 of file TestingFramework.hh.
Definition at line 222 of file TestingFramework.hh.
| typedef std::vector<TestFuncPtr> OpenMesh::Utils::TestingFramework::TestSet |
Definition at line 223 of file TestingFramework.hh.
| typedef std::logic_error OpenMesh::Utils::TestingFramework::verify_error |
Definition at line 122 of file TestingFramework.hh.
| OpenMesh::Utils::TestingFramework::TestingFramework | ( | std::ostream & | _os | ) | [inline] |
Definition at line 227 of file TestingFramework.hh.
| virtual OpenMesh::Utils::TestingFramework::~TestingFramework | ( | ) | [inline, virtual] |
Definition at line 245 of file TestingFramework.hh.
| Self& OpenMesh::Utils::TestingFramework::begin | ( | std::string | _title, | |
| const std::string & | _info = "" | |||
| ) | [inline] |
Definition at line 269 of file TestingFramework.hh.
| Self& OpenMesh::Utils::TestingFramework::end | ( | void | ) | [inline] |
Definition at line 285 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::errorCount | ( | ) | const [inline] |
Definition at line 307 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::errorTotal | ( | ) | const [inline] |
Definition at line 306 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::goodCount | ( | ) | const [inline] |
Definition at line 311 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::goodTotal | ( | ) | const [inline] |
Definition at line 310 of file TestingFramework.hh.
| Self& OpenMesh::Utils::TestingFramework::info | ( | const std::ostringstream & | _ostr | ) | [inline] |
Definition at line 300 of file TestingFramework.hh.
| Self& OpenMesh::Utils::TestingFramework::info | ( | const std::string & | _info | ) | [inline] |
Definition at line 294 of file TestingFramework.hh.
| int OpenMesh::Utils::TestingFramework::reg | ( | TestFuncPtr | _tfptr | ) | [inline, protected] |
Definition at line 339 of file TestingFramework.hh.
| int OpenMesh::Utils::TestingFramework::run | ( | void | ) | [inline] |
Definition at line 318 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::testCount | ( | ) | const [inline] |
Definition at line 314 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::testTotal | ( | ) | const [inline] |
Definition at line 313 of file TestingFramework.hh.
| bool OpenMesh::Utils::TestingFramework::verify | ( | const ValueType & | _rc, | |
| const ValueType & | _expected, | |||
| const std::string & | _info | |||
| ) | [inline] |
Definition at line 253 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::verifyCount | ( | ) | const [inline] |
Definition at line 309 of file TestingFramework.hh.
| size_t OpenMesh::Utils::TestingFramework::verifyTotal | ( | ) | const [inline] |
Definition at line 308 of file TestingFramework.hh.
friend class TestFunc [friend] |
Definition at line 345 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::errCount_ [private] |
Definition at line 350 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::errTotal_ [private] |
Definition at line 349 of file TestingFramework.hh.
std::ostream& OpenMesh::Utils::TestingFramework::os_ [private] |
Definition at line 357 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::testCount_ [private] |
Definition at line 354 of file TestingFramework.hh.
Definition at line 359 of file TestingFramework.hh.
std::string OpenMesh::Utils::TestingFramework::testTitle_ [private] |
Definition at line 356 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::testTotal_ [private] |
Definition at line 353 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::verifyCount_ [private] |
Definition at line 352 of file TestingFramework.hh.
size_t OpenMesh::Utils::TestingFramework::verifyTotal_ [private] |
Definition at line 351 of file TestingFramework.hh.