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

A helper class packing assertion condition and an assertion message together. More...

#include <assertbean.h>

Public Member Functions

 AssertBean ()
 Default ctor - false condition, empty message. More...
 
 AssertBean (bool condition_, const std::string &message_)
 Ctor. More...
 
 AssertBean (const AssertBean &src_)
 Copy ctor. More...
 
 ~AssertBean ()
 Dtor. More...
 
void swap (AssertBean &b2_) noexcept
 Swap contents. More...
 
AssertBeanoperator= (const AssertBean &src_)
 Copy operator. More...
 
bool getCondition () const
 Get assertion condition. More...
 
const std::string & getMessage () const
 Get assertion message. More...
 

Detailed Description

A helper class packing assertion condition and an assertion message together.

Definition at line 31 of file assertbean.h.

Constructor & Destructor Documentation

◆ AssertBean() [1/3]

OTest2::AssertBean::AssertBean ( )

Default ctor - false condition, empty message.

Definition at line 26 of file assertbean.cpp.

◆ AssertBean() [2/3]

OTest2::AssertBean::AssertBean ( bool  condition_,
const std::string &  message_ 
)
explicit

Ctor.

Parameters
condition_Assertion condition
message_Assertion message

Definition at line 32 of file assertbean.cpp.

◆ AssertBean() [3/3]

OTest2::AssertBean::AssertBean ( const AssertBean src_)
default

Copy ctor.

◆ ~AssertBean()

OTest2::AssertBean::~AssertBean ( )
default

Dtor.

Member Function Documentation

◆ getCondition()

bool OTest2::AssertBean::getCondition ( ) const

Get assertion condition.

Definition at line 54 of file assertbean.cpp.

◆ getMessage()

const std::string & OTest2::AssertBean::getMessage ( ) const

Get assertion message.

Definition at line 58 of file assertbean.cpp.

◆ operator=()

AssertBean & OTest2::AssertBean::operator= ( const AssertBean src_)
default

Copy operator.

◆ swap()

void OTest2::AssertBean::swap ( AssertBean b2_)
noexcept

Swap contents.

Definition at line 45 of file assertbean.cpp.


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