CPUnit 0.95 (beta)
The REAL C++ port of JUnit.
|
Registration data for unit tests. More...
#include <cpunit_RegInfo.hpp>
Public Member Functions | |
RegInfo () | |
RegInfo (const std::string _path, const std::string _name, const std::string _file, const std::string _line) | |
Constructs a complete RegInfo object. | |
RegInfo (const RegInfo &o) | |
virtual | ~RegInfo () |
RegInfo & | operator= (const RegInfo &o) |
std::string | get_path () const |
std::string | get_name () const |
std::string | get_file () const |
std::string | get_line () const |
std::string | to_string () const |
Formatted string content. | |
Private Attributes | |
const std::string * | path |
const std::string * | name |
const std::string * | file |
const std::string * | line |
StringFlyweightStoreUsage | counter |
Registration data for unit tests.
As many of the texts in the RegInfo objects occure in more than one test, the object uses the StringFlyweightStore to reduce memory usage due to heavy string use.
Definition at line 46 of file cpunit_RegInfo.hpp.
cpunit::RegInfo::RegInfo | ( | ) |
Definition at line 37 of file cpunit_RegInfo.cpp.
cpunit::RegInfo::RegInfo | ( | const std::string | _path, |
const std::string | _name, | ||
const std::string | _file, | ||
const std::string | _line | ||
) |
Constructs a complete RegInfo object.
_path | The namespace where the test resides, prefixed by '::'. |
_name | The test name. |
_file | The name of the file where the test is regstered. |
_line | The line number where the test starts. |
Definition at line 54 of file cpunit_RegInfo.cpp.
cpunit::RegInfo::RegInfo | ( | const RegInfo & | o | ) |
Definition at line 65 of file cpunit_RegInfo.cpp.
cpunit::RegInfo::~RegInfo | ( | ) | [virtual] |
Definition at line 75 of file cpunit_RegInfo.cpp.
std::string cpunit::RegInfo::get_file | ( | ) | const |
Definition at line 113 of file cpunit_RegInfo.cpp.
std::string cpunit::RegInfo::get_line | ( | ) | const |
Definition at line 121 of file cpunit_RegInfo.cpp.
std::string cpunit::RegInfo::get_name | ( | ) | const |
Definition at line 97 of file cpunit_RegInfo.cpp.
std::string cpunit::RegInfo::get_path | ( | ) | const |
Definition at line 105 of file cpunit_RegInfo.cpp.
cpunit::RegInfo & cpunit::RegInfo::operator= | ( | const RegInfo & | o | ) |
Definition at line 81 of file cpunit_RegInfo.cpp.
std::string cpunit::RegInfo::to_string | ( | ) | const |
Formatted string content.
Definition at line 130 of file cpunit_RegInfo.cpp.
Definition at line 51 of file cpunit_RegInfo.hpp.
const std::string* cpunit::RegInfo::file [private] |
Definition at line 49 of file cpunit_RegInfo.hpp.
const std::string* cpunit::RegInfo::line [private] |
Definition at line 50 of file cpunit_RegInfo.hpp.
const std::string* cpunit::RegInfo::name [private] |
Definition at line 48 of file cpunit_RegInfo.hpp.
const std::string* cpunit::RegInfo::path [private] |
Definition at line 47 of file cpunit_RegInfo.hpp.