|
OTest2
A C++ testing framework
|
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... | |
| AssertBean & | operator= (const AssertBean &src_) |
| Copy operator. More... | |
| bool | getCondition () const |
| Get assertion condition. More... | |
| const std::string & | getMessage () const |
| Get assertion message. More... | |
A helper class packing assertion condition and an assertion message together.
Definition at line 31 of file assertbean.h.
| OTest2::AssertBean::AssertBean | ( | ) |
Default ctor - false condition, empty message.
Definition at line 26 of file assertbean.cpp.
|
explicit |
Ctor.
| condition_ | Assertion condition |
| message_ | Assertion message |
Definition at line 32 of file assertbean.cpp.
|
default |
Copy ctor.
|
default |
Dtor.
| bool OTest2::AssertBean::getCondition | ( | ) | const |
Get assertion condition.
Definition at line 54 of file assertbean.cpp.
| const std::string & OTest2::AssertBean::getMessage | ( | ) | const |
Get assertion message.
Definition at line 58 of file assertbean.cpp.
|
default |
Copy operator.
|
noexcept |
Swap contents.
Definition at line 45 of file assertbean.cpp.
1.8.17