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

String test mark. More...

#include <testmarkstring.h>

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

Public Member Functions

 TestMarkString (const std::string &value_)
 Ctor. More...
 
 TestMarkString (const CtorMark *)
 Deserialization ctor. More...
 
virtual ~TestMarkString ()
 Dtor. More...
 
 TestMarkString (const TestMarkString &)=delete
 
TestMarkStringoperator= (const TestMarkString &)=delete
 
- Public Member Functions inherited from OTest2::TestMark
 TestMark ()
 Ctor. More...
 
virtual ~TestMark ()
 Dtor. More...
 
 TestMark (const TestMark &)=delete
 
TestMarkoperator= (const TestMark &)=delete
 
TestMarkHashCode getHashCode () const noexcept
 Get testmarks' hash code. More...
 
bool isEqual (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare two marks for equality. More...
 
bool isEqualValue (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare values of 2 test mark nodes. More...
 
bool isEqualValueHash (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare values of 2 testmark nodes and their hash codes. More...
 
void linearizedMark (std::vector< LinearizedRecord > &array_) const
 Create the linearized test mark. More...
 
void printOpen (std::ostream &os_, const std::string &prefix_) const
 Print opening of the node into a stream. More...
 
void printClose (std::ostream &os_, const std::string &prefix_) const
 Print closing of the node into a stream. More...
 
void serializeMark (TestMarkOut &serializer_) const
 Serialize the testmark into a serializer. More...
 
void deserializeMark (TestMarkFactory &factory_, TestMarkIn &deserializer_)
 Deserialize the testmark. More...
 
void computeDiff (const TestMark &other_, std::vector< LinearizedRecord > &left_, std::vector< LinearizedRecord > &right_, DiffLogBuilder &diff_) const
 Compute difference of two test marks. More...
 
void printMark (TestMarkFormatter &formatter_) const
 Print the testmark. More...
 
void printAddMark (TestMarkFormatter &formatter_) const
 Print the testmark as it's completely new. More...
 

Static Public Member Functions

static const char * typeMark ()
 Get deserialization typemark. More...
 

Detailed Description

String test mark.

Definition at line 34 of file testmarkstring.h.

Constructor & Destructor Documentation

◆ TestMarkString() [1/3]

OTest2::TestMarkString::TestMarkString ( const std::string &  value_)
explicit

Ctor.

Parameters
value_Value of the mark

Definition at line 37 of file testmarkstring.cpp.

◆ TestMarkString() [2/3]

OTest2::TestMarkString::TestMarkString ( const CtorMark *  )
explicit

Deserialization ctor.

Definition at line 43 of file testmarkstring.cpp.

◆ ~TestMarkString()

OTest2::TestMarkString::~TestMarkString ( )
virtual

Dtor.

Definition at line 49 of file testmarkstring.cpp.

◆ TestMarkString() [3/3]

OTest2::TestMarkString::TestMarkString ( const TestMarkString )
delete

Member Function Documentation

◆ operator=()

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

◆ typeMark()

const char * OTest2::TestMarkString::typeMark ( )
static

Get deserialization typemark.

Definition at line 53 of file testmarkstring.cpp.


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