OpenMesh::Utils::TestingFramework Class Reference

#include <TestingFramework.hh>

Inheritance diagram for OpenMesh::Utils::TestingFramework:
Inheritance graph
[legend]

List of all members.

Classes

struct  TestDeleter
class  TestFunc
struct  TestRunner

Public Types

typedef TestingFramework Self
typedef TestFuncTestFuncPtr
typedef std::vector< TestFuncPtrTestSet
typedef std::logic_error verify_error

Public Member Functions

Selfbegin (std::string _title, const std::string &_info="")
Selfend ()
size_t errorCount () const
size_t errorTotal () const
size_t goodCount () const
size_t goodTotal () const
Selfinfo (const std::ostringstream &_ostr)
Selfinfo (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

Detailed Description

Helper class for test programms.

Definition at line 117 of file TestingFramework.hh.


Member Typedef Documentation

Definition at line 121 of file TestingFramework.hh.

Definition at line 222 of file TestingFramework.hh.

Definition at line 223 of file TestingFramework.hh.

Definition at line 122 of file TestingFramework.hh.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

template<typename ValueType >
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.


Friends And Related Function Documentation

friend class TestFunc [friend]

Definition at line 345 of file TestingFramework.hh.


Member Data Documentation

Definition at line 350 of file TestingFramework.hh.

Definition at line 349 of file TestingFramework.hh.

std::ostream& OpenMesh::Utils::TestingFramework::os_ [private]

Definition at line 357 of file TestingFramework.hh.

Definition at line 354 of file TestingFramework.hh.

Definition at line 359 of file TestingFramework.hh.

Definition at line 356 of file TestingFramework.hh.

Definition at line 353 of file TestingFramework.hh.

Definition at line 352 of file TestingFramework.hh.

Definition at line 351 of file TestingFramework.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:21 2013