OsiUnitTest::TestOutcome Class Reference

A single test outcome record. More...

#include <OsiUnitTests.hpp>

List of all members.

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.
void print () const
 Print the test outcome.

Public Attributes

std::string component
 Name of component under test.
std::string testname
 Name of test.
std::string testcond
 Condition being tested.
SeverityLevel severity
 Test result.
bool expected
 Set to true if problem is expected.
std::string filename
 Name of code file where test executed.
int linenumber
 Line number in code file where test executed.

Static Public Attributes

static std::string SeverityLevelName [LAST]
 Print strings for SeverityLevel.

Detailed Description

A single test outcome record.

Definition at line 163 of file OsiUnitTests.hpp.


Member Enumeration Documentation

Test result.

Enumerator:
NOTE 
PASSED 
WARNING 
ERROR 
LAST 

Definition at line 166 of file OsiUnitTests.hpp.


Constructor & Destructor Documentation

OsiUnitTest::TestOutcome::TestOutcome ( const std::string &  comp,
const std::string &  tst,
const char *  cond,
SeverityLevel  sev,
const char *  file,
int  line,
bool  exp = false 
) [inline]

Standard constructor.

Definition at line 190 of file OsiUnitTests.hpp.


Member Function Documentation

void OsiUnitTest::TestOutcome::print (  )  const

Print the test outcome.


Member Data Documentation

std::string OsiUnitTest::TestOutcome::SeverityLevelName[LAST] [static]

Print strings for SeverityLevel.

Definition at line 174 of file OsiUnitTests.hpp.

Name of component under test.

Definition at line 176 of file OsiUnitTests.hpp.

Name of test.

Definition at line 178 of file OsiUnitTests.hpp.

Condition being tested.

Definition at line 180 of file OsiUnitTests.hpp.

Test result.

Definition at line 182 of file OsiUnitTests.hpp.

Set to true if problem is expected.

Definition at line 184 of file OsiUnitTests.hpp.

Name of code file where test executed.

Definition at line 186 of file OsiUnitTests.hpp.

Line number in code file where test executed.

Definition at line 188 of file OsiUnitTests.hpp.


The documentation for this class was generated from the following file:

Generated on 29 Apr 2013 by  doxygen 1.6.1