|
OTest2
A C++ testing framework
|
This is a simple object keeping path to current testing object. More...
#include <objectpath.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| ObjectPath (const ObjectPath &)=delete | |
| ObjectPath & | operator= (const ObjectPath &)=delete |
| ObjectPath () | |
| Ctor. More... | |
| ObjectPath (const std::string &full_path_) | |
| Ctor with initial path. More... | |
| ~ObjectPath () | |
| Dtor. More... | |
| void | pushName (const std::string &name_) |
| Push name of currently entering testing object. More... | |
| void | popName () |
| Pop name of currently leaving testing object. More... | |
| void | appendParameter (const std::string &name_, const std::string &value_) |
| Append parameter to current testing object. More... | |
| std::string | getCurrentName () const |
| Get name at the top of the stack. More... | |
| const Parameters & | getCurrentParameters () const |
| Get parameters of current object. More... | |
| std::string | getCurrentPath () const |
| Get path of current object. More... | |
| std::string | getRegressionKey (const std::string &local_key_) const |
| Create key of a regression test mark according to current object path. More... | |
| bool | isPrefixOf (const ObjectPath &path_) const noexcept |
| Tell us whether this object is a prefix of specified path_. More... | |
This is a simple object keeping path to current testing object.
Definition at line 32 of file objectpath.h.
|
delete |
| OTest2::ObjectPath::ObjectPath | ( | ) |
Ctor.
Definition at line 56 of file objectpath.cpp.
|
explicit |
Ctor with initial path.
| full_path_ | The full path (parts of path separated by '::') |
Definition at line 61 of file objectpath.cpp.
| OTest2::ObjectPath::~ObjectPath | ( | ) |
Dtor.
Definition at line 82 of file objectpath.cpp.
| void OTest2::ObjectPath::appendParameter | ( | const std::string & | name_, |
| const std::string & | value_ | ||
| ) |
Append parameter to current testing object.
| name_ | Name of the parameter |
| value_ | Value of the parameter |
Definition at line 98 of file objectpath.cpp.
| std::string OTest2::ObjectPath::getCurrentName | ( | ) | const |
| const Parameters & OTest2::ObjectPath::getCurrentParameters | ( | ) | const |
Get parameters of current object.
Definition at line 112 of file objectpath.cpp.
| std::string OTest2::ObjectPath::getCurrentPath | ( | ) | const |
| std::string OTest2::ObjectPath::getRegressionKey | ( | const std::string & | local_key_ | ) | const |
Create key of a regression test mark according to current object path.
| local_key_ | Key of the test mark in its local scope |
Definition at line 127 of file objectpath.cpp.
|
noexcept |
Tell us whether this object is a prefix of specified path_.
Definition at line 143 of file objectpath.cpp.
|
delete |
| void OTest2::ObjectPath::popName | ( | ) |
Pop name of currently leaving testing object.
Definition at line 93 of file objectpath.cpp.
| void OTest2::ObjectPath::pushName | ( | const std::string & | name_ | ) |
Push name of currently entering testing object.
| name_ | The name |
Definition at line 86 of file objectpath.cpp.
1.8.17