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

#include <assertionstext.h>

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

Public Member Functions

 LongTextAssertion (const LongTextAssertion &)=delete
 
LongTextAssertionoperator= (const LongTextAssertion &)=delete
 
bool testAssertLongTextSS (std::istream &a_, std::istream &b_)
 
bool testAssertLongTextST (std::istream &a_, const std::string &b_)
 
bool testAssertLongTextSF (std::istream &a_, const std::string &file_b_)
 
bool testAssertLongTextTS (const std::string &a_, std::istream &b_)
 
bool testAssertLongTextTT (const std::string &a_, const std::string &b_)
 
bool testAssertLongTextTF (const std::string &a_, const std::string &file_b_)
 
bool testAssertLongTextFS (const std::string &file_a_, std::istream &b_)
 
bool testAssertLongTextFT (const std::string &file_a_, const std::string &b_)
 
bool testAssertLongTextFF (const std::string &file_a_, const std::string &file_b_)
 
 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

Definition at line 30 of file assertionstext.h.

Constructor & Destructor Documentation

◆ LongTextAssertion()

OTest2::LongTextAssertion::LongTextAssertion ( const LongTextAssertion )
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=()

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

◆ testAssertLongTextFF()

bool OTest2::LongTextAssertion::testAssertLongTextFF ( const std::string &  file_a_,
const std::string &  file_b_ 
)

Definition at line 239 of file assertionstext.cpp.

◆ testAssertLongTextFS()

bool OTest2::LongTextAssertion::testAssertLongTextFS ( const std::string &  file_a_,
std::istream &  b_ 
)

Definition at line 224 of file assertionstext.cpp.

◆ testAssertLongTextFT()

bool OTest2::LongTextAssertion::testAssertLongTextFT ( const std::string &  file_a_,
const std::string &  b_ 
)

Definition at line 231 of file assertionstext.cpp.

◆ testAssertLongTextSF()

bool OTest2::LongTextAssertion::testAssertLongTextSF ( std::istream &  a_,
const std::string &  file_b_ 
)

Definition at line 194 of file assertionstext.cpp.

◆ testAssertLongTextSS()

bool OTest2::LongTextAssertion::testAssertLongTextSS ( std::istream &  a_,
std::istream &  b_ 
)

Definition at line 181 of file assertionstext.cpp.

◆ testAssertLongTextST()

bool OTest2::LongTextAssertion::testAssertLongTextST ( std::istream &  a_,
const std::string &  b_ 
)

Definition at line 187 of file assertionstext.cpp.

◆ testAssertLongTextTF()

bool OTest2::LongTextAssertion::testAssertLongTextTF ( const std::string &  a_,
const std::string &  file_b_ 
)

Definition at line 216 of file assertionstext.cpp.

◆ testAssertLongTextTS()

bool OTest2::LongTextAssertion::testAssertLongTextTS ( const std::string &  a_,
std::istream &  b_ 
)

Definition at line 201 of file assertionstext.cpp.

◆ testAssertLongTextTT()

bool OTest2::LongTextAssertion::testAssertLongTextTT ( const std::string &  a_,
const std::string &  b_ 
)

Definition at line 208 of file assertionstext.cpp.


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