OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::RegressionAssertion Class Reference

Implementation class of the regression assertions. More...

#include <regressions.h>

Inheritance diagram for OTest2::RegressionAssertion:
Inheritance graph
[legend]
Collaboration diagram for OTest2::RegressionAssertion:
Collaboration graph
[legend]

Public Member Functions

 RegressionAssertion (const RegressionAssertion &)=delete
 
RegressionAssertionoperator= (const RegressionAssertion &)=delete
 
template<typename Object_ >
bool testRegression (const std::string &key_, const Object_ &object_)
 
template<typename Object_ >
bool testRegressionP (const std::string &key_, const Object_ &object_)
 
template<typename Object_ >
bool testRegressionW (const std::string &key_, const Object_ &object_)
 
 AssertContext (const AssertContext &)=delete
 
 AssertContext (const Context &context_, const std::string &file_, int lineno_, std::initializer_list< const char * > parameters_)
 Ctor. More...
 
- Public Member Functions inherited from OTest2::AssertContext
 AssertContext (const AssertContext &)=delete
 
AssertContextoperator= (const AssertContext &)=delete
 
 AssertContext (const Context &context_, const std::string &file_, int lineno_, std::initializer_list< const char * > parameters_)
 Ctor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from OTest2::AssertContext
 ~AssertContext ()
 Dtor. More...
 
AssertStream enterAssertion (bool result_)
 Enter an assertion. More...
 
bool simpleAssertionImpl (bool condition_, const std::string &message_, bool print_expression_)
 Implementation of a simple assertion. More...
 
const Contextotest2Context () const
 Get the OTest2 context. More...
 

Detailed Description

Implementation class of the regression assertions.

Definition at line 34 of file regressions.h.

Constructor & Destructor Documentation

◆ RegressionAssertion()

OTest2::RegressionAssertion::RegressionAssertion ( const RegressionAssertion )
delete

Member Function Documentation

◆ AssertContext() [1/2]

OTest2::AssertContext::AssertContext
delete

◆ AssertContext() [2/2]

OTest2::AssertContext::AssertContext
explicit

Ctor.

Parameters
context_The OTest2 context
file_filename which the assertion is located in
lineno_line number of the assertion
parameters_Array of strings representing the parameters of the assertion. The initializer list is valid just inside one expression as well as the instance of the assertion context is.

Definition at line 31 of file assertcontext.cpp.

◆ operator=()

RegressionAssertion& OTest2::RegressionAssertion::operator= ( const RegressionAssertion )
delete

◆ testRegression()

template<typename Object_ >
bool OTest2::RegressionAssertion::testRegression ( const std::string &  key_,
const Object_ &  object_ 
)

Definition at line 47 of file regressionsimpl.h.

◆ testRegressionP()

template<typename Object_ >
bool OTest2::RegressionAssertion::testRegressionP ( const std::string &  key_,
const Object_ &  object_ 
)

Definition at line 59 of file regressionsimpl.h.

◆ testRegressionW()

template<typename Object_ >
bool OTest2::RegressionAssertion::testRegressionW ( const std::string &  key_,
const Object_ &  object_ 
)

Definition at line 71 of file regressionsimpl.h.


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