OTest2
A C++ testing framework
|
Generic parameters of a run of an testing object. More...
#include <parameters.h>
Classes | |
struct | Impl |
Public Member Functions | |
Parameters (const Parameters &)=delete | |
Parameters & | operator= (const Parameters &)=delete |
Parameters () | |
Ctor - empty parameters. More... | |
Parameters (Parameters &&other_) noexcept | |
Move ctor. More... | |
~Parameters () | |
Dtor. More... | |
void | swap (Parameters &other_) noexcept |
Swap contents. More... | |
Parameters & | operator= (Parameters &&other_) noexcept |
Move assignment. More... | |
void | appendParameter (const std::string &name_, const std::string &value_) |
Append new parameter. More... | |
std::string | mixWithName (const std::string &name_) const |
Create one string mixed with a name of a testing object. More... | |
Generic parameters of a run of an testing object.
Definition at line 30 of file parameters.h.
|
delete |
OTest2::Parameters::Parameters | ( | ) |
Ctor - empty parameters.
Definition at line 44 of file parameters.cpp.
|
noexcept |
Move ctor.
Definition at line 49 of file parameters.cpp.
OTest2::Parameters::~Parameters | ( | ) |
Dtor.
Definition at line 55 of file parameters.cpp.
void OTest2::Parameters::appendParameter | ( | const std::string & | name_, |
const std::string & | value_ | ||
) |
Append new parameter.
name_ | Name of the parameter |
value_ | Value |
Definition at line 73 of file parameters.cpp.
std::string OTest2::Parameters::mixWithName | ( | const std::string & | name_ | ) | const |
Create one string mixed with a name of a testing object.
This method creates one string containing name of the object and all parameters. Typically, the method is used in the reporters to print an identifier of the object's run.
Name | of the testing object |
Definition at line 80 of file parameters.cpp.
|
delete |
|
noexcept |
Move assignment.
Definition at line 64 of file parameters.cpp.
|
noexcept |
Swap contents.
Definition at line 59 of file parameters.cpp.