OTest2
A C++ testing framework
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OTest2::TestMarkPrefix Class Referenceabstract

A generic test mark with string prefix. More...

#include <testmarkprefix.h>

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

Public Member Functions

 TestMarkPrefix (const TestMarkPrefix &)=delete
 
TestMarkPrefixoperator= (const TestMarkPrefix &)=delete
 
- Public Member Functions inherited from OTest2::TestMark
virtual void doLinearizedMark (int level_, const std::string &label_, std::vector< LinearizedRecord > &array_) const =0
 Create linearized test mark. More...
 
 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...
 

Protected Member Functions

 TestMarkPrefix (const char *serialize_type_mark_, const std::string &prefix_)
 Ctor. More...
 
 TestMarkPrefix (const CtorMark *, const char *serialize_type_mark_)
 Deserialization ctor. More...
 
virtual ~TestMarkPrefix ()
 Dtor. More...
 

Protected Attributes

TestMarkHash hash
 

Detailed Description

A generic test mark with string prefix.

Definition at line 35 of file testmarkprefix.h.

Constructor & Destructor Documentation

◆ TestMarkPrefix() [1/3]

OTest2::TestMarkPrefix::TestMarkPrefix ( const char *  serialize_type_mark_,
const std::string &  prefix_ 
)
explicitprotected

Ctor.

Parameters
serialize_type_mark_A type mark used for serialization. The ownership is not taken!
prefix_The prefix. It can be empty.

Definition at line 29 of file testmarkprefix.cpp.

◆ TestMarkPrefix() [2/3]

OTest2::TestMarkPrefix::TestMarkPrefix ( const CtorMark *  ,
const char *  serialize_type_mark_ 
)
explicitprotected

Deserialization ctor.

Definition at line 38 of file testmarkprefix.cpp.

◆ ~TestMarkPrefix()

OTest2::TestMarkPrefix::~TestMarkPrefix ( )
protectedvirtual

Dtor.

Definition at line 47 of file testmarkprefix.cpp.

◆ TestMarkPrefix() [3/3]

OTest2::TestMarkPrefix::TestMarkPrefix ( const TestMarkPrefix )
delete

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ hash

TestMarkHash OTest2::TestMarkPrefix::hash
protected

Definition at line 41 of file testmarkprefix.h.


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