OKlibrary  0.2.1.6
OKlib::TestExecutionTools::TestCounter< Dummy, IntType > Class Template Reference

Test function which increments a global counter each time it is called, and throws a test exception of the value of that counter after increment equals a throw_value. More...

#include <SecondOrderTestTools.hpp>

Inheritance diagram for OKlib::TestExecutionTools::TestCounter< Dummy, IntType >:
OKlib::TestSystem::Test

List of all members.

Public Types

typedef TestCounter test_type
typedef IntType int_type

Public Member Functions

 TestCounter (...)

Static Public Attributes

static int_type counter = 0
static int_type throw_value = 0

Detailed Description

template<class Dummy, typename IntType = uint_fast64_t>
class OKlib::TestExecutionTools::TestCounter< Dummy, IntType >

Test function which increments a global counter each time it is called, and throws a test exception of the value of that counter after increment equals a throw_value.

TestCounter<Dummy> uses Dummy only to ensure that the static data members are unique.

Definition at line 41 of file SecondOrderTestTools.hpp.


Member Typedef Documentation

template<class Dummy , typename IntType = uint_fast64_t>
typedef IntType OKlib::TestExecutionTools::TestCounter< Dummy, IntType >::int_type

Definition at line 43 of file SecondOrderTestTools.hpp.

template<class Dummy , typename IntType = uint_fast64_t>
typedef TestCounter OKlib::TestExecutionTools::TestCounter< Dummy, IntType >::test_type

Reimplemented from OKlib::TestSystem::Test.

Definition at line 42 of file SecondOrderTestTools.hpp.


Constructor & Destructor Documentation

template<class Dummy , typename IntType = uint_fast64_t>
OKlib::TestExecutionTools::TestCounter< Dummy, IntType >::TestCounter (   ...) [inline]

Definition at line 46 of file SecondOrderTestTools.hpp.


Member Data Documentation

template<class Dummy , typename IntType = uint_fast64_t>
TestCounter< Dummy, IntType >::int_type OKlib::TestExecutionTools::TestCounter< Dummy, IntType >::counter = 0 [static]

Definition at line 44 of file SecondOrderTestTools.hpp.

template<class Dummy , typename IntType = uint_fast64_t>
TestCounter< Dummy, IntType >::int_type OKlib::TestExecutionTools::TestCounter< Dummy, IntType >::throw_value = 0 [static]

Definition at line 45 of file SecondOrderTestTools.hpp.


The documentation for this class was generated from the following file: