OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2__INCLUDE_OTEST2_OBJECTPATH_H_
21 #define OTest2__INCLUDE_OTEST2_OBJECTPATH_H_
57 const std::string& full_path_);
70 const std::string& name_);
84 const std::string& name_,
85 const std::string& value_);
116 const std::string& local_key_)
const;
This is a simple object keeping path to current testing object.
void popName()
Pop name of currently leaving testing object.
ObjectPath & operator=(const ObjectPath &)=delete
std::string getRegressionKey(const std::string &local_key_) const
Create key of a regression test mark according to current object path.
void pushName(const std::string &name_)
Push name of currently entering testing object.
std::string getCurrentName() const
Get name at the top of the stack.
Generic parameters of a run of an testing object.
const Parameters & getCurrentParameters() const
Get parameters of current object.
void appendParameter(const std::string &name_, const std::string &value_)
Append parameter to current testing object.
std::string getCurrentPath() const
Get path of current object.
bool isPrefixOf(const ObjectPath &path_) const noexcept
Tell us whether this object is a prefix of specified path_.