The information about a test and how to easily find it in the filesystem. More...
#include <testdata.h>
Collaboration diagram for Mezzanine::Testing::TestData:Public Member Functions | |
| TestData (const String &Name="", TestResult Result=Testing::Success, const String &FuncName="", const String &File="", Mezzanine::Whole Line=0) | |
| Create a TestData. More... | |
| TestData (pugi::xml_node Node) | |
| Create Test data from xml. More... | |
| String | GetAsXML () const |
| Return a snippet of xml describing this TestData. More... | |
| bool | operator< (const TestData &Rhs) const |
| Used to sort TestData in std::std and other sorted containers, by TestName. More... | |
Public Attributes | |
| Mezzanine::String | FileName |
| The File The test happened in. | |
| Mezzanine::String | FunctionName |
| The function the test was called from. | |
| Mezzanine::Whole | LineNumber |
| What line in the file this test occurred when the test was compiled. | |
| TestResult | Results |
| How did the test turn out. | |
| Mezzanine::String | TestName |
| The name of a given test. | |
The information about a test and how to easily find it in the filesystem.
Definition at line 64 of file testdata.h.
| Mezzanine::Testing::TestData::TestData | ( | const String & | Name = "", |
| TestResult | Result = Testing::Success, |
||
| const String & | FuncName = "", |
||
| const String & | File = "", |
||
| Mezzanine::Whole | Line = 0 |
||
| ) |
Create a TestData.
| Name | the name of the test, defaults to "". |
| Result | A TestResult, defaults to Testing::Success. |
| FuncName | The name of the function this test was called from, Defaults to "". |
| File | The name of the file in which the test exists, Defaults to "". |
| Line | The line in the file in which the test exists, Defaults to 0. |
Definition at line 61 of file testdata.cpp.
| Mezzanine::Testing::TestData::TestData | ( | pugi::xml_node | Node | ) |
Create Test data from xml.
| Node | The XMl node to create this from |
Definition at line 69 of file testdata.cpp.
| String Mezzanine::Testing::TestData::GetAsXML | ( | ) | const |
Return a snippet of xml describing this TestData.
Definition at line 80 of file testdata.cpp.
| bool Mezzanine::Testing::TestData::operator< | ( | const TestData & | Rhs | ) | const |
Used to sort TestData in std::std and other sorted containers, by TestName.
| Rhs | the right hand operand when using the less than comparison operator. |
Definition at line 77 of file testdata.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.