OKlibrary
0.2.1.6
|
The components for higher-order unit-testing. More...
Namespaces | |
namespace | Implementation |
namespace | messages |
namespace | tests |
Classes | |
class | RunTest |
Responsible for running tests. More... | |
class | Test |
Root of the test class hierarchy. From this class test classes are to be derived, which are used by other test classes. More... | |
class | TestBase |
Base class for tests with auto-insertion. Derived from Test; from this class test classes are to be derived, which shall be executed on their own. More... | |
class | ErrorDescription |
The unit to describe one point in call history leading to a test failure. More... | |
class | TestException |
The root of the exception class hierarchy to be thrown in case of test failure. More... | |
class | OutputWrapper |
Class template used in conjunction with OKLIB_TEST_EQUAL_W when testing ranges for equality, where a list of the elements shall be output in case of test failure. More... | |
class | OutputWrapper2 |
Wrapper type to mark objects for nested list-output. More... | |
class | OutputWrapper3 |
Wrapper type to mark objects for doubly nested list-output. More... | |
class | VisitorTestLevel |
Abstract base class for generic visitors (helper classes) for TestLevel (to enable "polymorphic switches" on objects of type TestLevel). More... | |
class | TestLevel |
Abstract base class of the (polymorphic) test-level hierarchy. More... | |
struct | Basic |
struct | Full |
struct | Extensive |
Typedefs | |
typedef unsigned long int | depth_number_type |
Unsigned integral type to represent the level of nesting of test-metafunctions-calls. | |
typedef unsigned long int | line_number_type |
Unsigned integral type to represent source-code line numbers. | |
typedef double | TestSingleParameter |
typedef std::vector < TestSingleParameter > | TestParameter |
typedef unsigned int | LineNumber |
typedef std::vector < ErrorDescription > | ErrorContainer |
Functions | |
template<typename T > | |
OutputWrapper< T > | output_wrapper (const T &t) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const OutputWrapper< T > &w) |
template<typename T > | |
OutputWrapper2< T > | output_wrapper2 (const T &t) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const OutputWrapper2< T > &w) |
template<typename T > | |
OutputWrapper3< T > | output_wrapper3 (const T &t) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const OutputWrapper3< T > &w) |
template<class TestLevelDerived > | |
TestLevel & | test_level (TestLevelDerived) |
Factory for static test-level objects. |
The components for higher-order unit-testing.
Unsigned integral type to represent the level of nesting of test-metafunctions-calls.
Definition at line 28 of file BasicDeclarations.hpp.
typedef std::vector<ErrorDescription> OKlib::TestSystem::ErrorContainer |
Definition at line 56 of file TestExceptions.hpp.
Unsigned integral type to represent source-code line numbers.
Definition at line 35 of file BasicDeclarations.hpp.
typedef unsigned int OKlib::TestSystem::LineNumber |
Definition at line 33 of file TestExceptions.hpp.
typedef std::vector<TestSingleParameter> OKlib::TestSystem::TestParameter |
Definition at line 34 of file TestBaseClass.hpp.
typedef double OKlib::TestSystem::TestSingleParameter |
Definition at line 33 of file TestBaseClass.hpp.
std::ostream & OKlib::TestSystem::operator<< | ( | std::ostream & | out, |
const OutputWrapper< T > & | w | ||
) |
Definition at line 202 of file TestExceptions.hpp.
References StreamHandling::copy().
std::ostream & OKlib::TestSystem::operator<< | ( | std::ostream & | out, |
const OutputWrapper2< T > & | w | ||
) |
Definition at line 216 of file TestExceptions.hpp.
References StreamHandling::copy().
std::ostream & OKlib::TestSystem::operator<< | ( | std::ostream & | out, |
const OutputWrapper3< T > & | w | ||
) |
Definition at line 230 of file TestExceptions.hpp.
References StreamHandling::copy().
OutputWrapper< T > OKlib::TestSystem::output_wrapper | ( | const T & | t | ) | [inline] |
Definition at line 198 of file TestExceptions.hpp.
OutputWrapper2< T > OKlib::TestSystem::output_wrapper2 | ( | const T & | t | ) | [inline] |
Definition at line 212 of file TestExceptions.hpp.
OutputWrapper3< T > OKlib::TestSystem::output_wrapper3 | ( | const T & | t | ) | [inline] |
Definition at line 226 of file TestExceptions.hpp.
TestLevel& OKlib::TestSystem::test_level | ( | TestLevelDerived | ) | [inline] |
Factory for static test-level objects.
Providing global test-level-objects, exploiting the Singleton pattern. Needed to avoid temporaries.
Definition at line 132 of file TestFondement.hpp.
Referenced by main().