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

Testmark formatter working with the assertion stream. More...

#include <testmarkformatterassert.h>

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

Public Member Functions

 TestMarkFormatterAssert (const TestMarkFormatterAssert &)=delete
 
TestMarkFormatterAssertoperator= (const TestMarkFormatterAssert &)=delete
 
 TestMarkFormatterAssert (AssertStream *stream_, const std::string &prefix_)
 Ctor. More...
 
virtual ~TestMarkFormatterAssert ()
 Dtor. More...
 
- Public Member Functions inherited from OTest2::TestMarkFormatterIOS
 TestMarkFormatterIOS (const TestMarkFormatterIOS &)=delete
 
TestMarkFormatterIOSoperator= (const TestMarkFormatterIOS &)=delete
 
 TestMarkFormatterIOS (std::ostream *os_, const std::string &prefix_)
 Ctor. More...
 
virtual ~TestMarkFormatterIOS ()
 Dtor. More...
 
virtual void openMark (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of a testmark. More...
 
virtual void closeMark (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of a testmark. More...
 
virtual void openDeleted (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of a deleted testmark. More...
 
virtual void closeDeleted (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of a deleted testmark. More...
 
virtual void openAdded (const std::string &label_, const TestMark *mark_, int indent_) override
 Print opening of an added testmark. More...
 
virtual void closeAdded (const std::string &label_, const TestMark *mark_, int indent_) override
 Print closing of an added testmark. More...
 
virtual void printSeparator () override
 Print separator (used for unchanged blocks) More...
 
- Public Member Functions inherited from OTest2::TestMarkFormatter
 TestMarkFormatter (const TestMarkFormatter &)=delete
 
TestMarkFormatteroperator= (const TestMarkFormatter &)=delete
 
 TestMarkFormatter ()
 Ctor. More...
 
virtual ~TestMarkFormatter ()
 Dtor. More...
 

Detailed Description

Testmark formatter working with the assertion stream.

Definition at line 33 of file testmarkformatterassert.h.

Constructor & Destructor Documentation

◆ TestMarkFormatterAssert() [1/2]

OTest2::TestMarkFormatterAssert::TestMarkFormatterAssert ( const TestMarkFormatterAssert )
delete

◆ TestMarkFormatterAssert() [2/2]

OTest2::TestMarkFormatterAssert::TestMarkFormatterAssert ( AssertStream stream_,
const std::string &  prefix_ 
)
explicit

Ctor.

Parameters
stream_The assertion stream. The ownership is not taken.
prefix_A prefix prepended to each line

Definition at line 28 of file testmarkformatterassert.cpp.

◆ ~TestMarkFormatterAssert()

OTest2::TestMarkFormatterAssert::~TestMarkFormatterAssert ( )
virtualdefault

Dtor.

Member Function Documentation

◆ operator=()

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

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