A single test outcome record. More...
#include <OsiUnitTests.hpp>
Public Types | |
| enum | SeverityLevel { NOTE = 0, PASSED = 1, WARNING = 2, ERROR = 3, LAST = 4 } |
| Test result. More... | |
Public Member Functions | |
| TestOutcome (const std::string &comp, const std::string &tst, const char *cond, SeverityLevel sev, const char *file, int line, bool exp=false) | |
| Standard constructor. More... | |
| void | print () const |
| Print the test outcome. More... | |
Public Attributes | |
| std::string | component |
| Name of component under test. More... | |
| std::string | testname |
| Name of test. More... | |
| std::string | testcond |
| Condition being tested. More... | |
| SeverityLevel | severity |
| Test result. More... | |
| bool | expected |
| Set to true if problem is expected. More... | |
| std::string | filename |
| Name of code file where test executed. More... | |
| int | linenumber |
| Line number in code file where test executed. More... | |
Static Public Attributes | |
| static std::string | SeverityLevelName [LAST] |
| Print strings for SeverityLevel. More... | |
A single test outcome record.
Definition at line 166 of file OsiUnitTests.hpp.
Test result.
| Enumerator | |
|---|---|
| NOTE | |
| PASSED | |
| WARNING | |
| ERROR | |
| LAST | |
Definition at line 169 of file OsiUnitTests.hpp.
|
inline |
Standard constructor.
Definition at line 193 of file OsiUnitTests.hpp.
| void OsiUnitTest::TestOutcome::print | ( | ) | const |
Print the test outcome.
|
static |
Print strings for SeverityLevel.
Definition at line 177 of file OsiUnitTests.hpp.
| std::string OsiUnitTest::TestOutcome::component |
Name of component under test.
Definition at line 179 of file OsiUnitTests.hpp.
| std::string OsiUnitTest::TestOutcome::testname |
Name of test.
Definition at line 181 of file OsiUnitTests.hpp.
| std::string OsiUnitTest::TestOutcome::testcond |
Condition being tested.
Definition at line 183 of file OsiUnitTests.hpp.
| SeverityLevel OsiUnitTest::TestOutcome::severity |
Test result.
Definition at line 185 of file OsiUnitTests.hpp.
| bool OsiUnitTest::TestOutcome::expected |
Set to true if problem is expected.
Definition at line 187 of file OsiUnitTests.hpp.
| std::string OsiUnitTest::TestOutcome::filename |
Name of code file where test executed.
Definition at line 189 of file OsiUnitTests.hpp.
| int OsiUnitTest::TestOutcome::linenumber |
Line number in code file where test executed.
Definition at line 191 of file OsiUnitTests.hpp.
1.8.5