Osi
0.108.6
|
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. More... | |
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. More... | |
void | print () const |
Print the list of outcomes. More... | |
void | getCountBySeverity (TestOutcome::SeverityLevel sev, int &total, int &expected) const |
Count total and expected outcomes at given severity level. More... | |
Additional Inherited Members | |
![]() | |
T | elements |
STL member. More... | |
Utility class to maintain a list of test outcomes.
Definition at line 205 of file OsiUnitTests.hpp.
|
inline |
Add an outcome to the list.
Definition at line 208 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.