Utility class to maintain a list of test outcomes. More...
#include <OsiUnitTests.hpp>


Public Member Functions | |
| void | add (std::string comp, std::string tst, const char *cond, TestOutcome::SeverityLevel sev, const char *file, int line, bool exp=false) |
| Add an outcome to the list. | |
| void | add (const OsiSolverInterface &si, std::string tst, const char *cond, TestOutcome::SeverityLevel sev, const char *file, int line, bool exp=false) |
| Add an outcome to the list. | |
| void | print () const |
| Print the list of outcomes. | |
| void | getCountBySeverity (TestOutcome::SeverityLevel sev, int &total, int &expected) const |
| Count total and expected outcomes at given severity level. | |
Utility class to maintain a list of test outcomes.
Definition at line 204 of file OsiUnitTests.hpp.
| void OsiUnitTest::TestOutcomes::add | ( | std::string | comp, | |
| std::string | tst, | |||
| const char * | cond, | |||
| TestOutcome::SeverityLevel | sev, | |||
| const char * | file, | |||
| int | line, | |||
| bool | exp = false | |||
| ) | [inline] |
Add an outcome to the list.
Definition at line 207 of file OsiUnitTests.hpp.
| void OsiUnitTest::TestOutcomes::add | ( | const OsiSolverInterface & | si, | |
| std::string | tst, | |||
| const char * | cond, | |||
| TestOutcome::SeverityLevel | sev, | |||
| const char * | file, | |||
| int | line, | |||
| bool | exp = false | |||
| ) |
Add an outcome to the list.
Get the component name from the solver interface.
| void OsiUnitTest::TestOutcomes::print | ( | ) | const |
Print the list of outcomes.
| void OsiUnitTest::TestOutcomes::getCountBySeverity | ( | TestOutcome::SeverityLevel | sev, | |
| int & | total, | |||
| int & | expected | |||
| ) | const |
Count total and expected outcomes at given severity level.
Given a severity level, walk the list of outcomes and count the total number of outcomes at this severity level and the number expected.
1.6.1