Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ccunit::TestComponent::ErrorReport Class Reference

Failed test report. More...

#include <TestComponent.hh>

List of all members.

Public Methods

 ErrorReport (const char *type_name, const string &lbl, const char *fname, const char *fnt_name, long lineno)
 Construct the error report. More...

const string & getObject () const
 Test Object ID. More...

const string & getLabel () const
 Get the test label. More...

const string & getFileName () const
 Get the name of the file where the test failed. More...

const string & getLineNumber () const
 Get the line number of the failed test. More...

const string & getTestFunctionName () const
 Get the function name where the test failed. More...


Private Attributes

string m_to_name
 The rtti (i.e., typeid) name of the test object. More...

string m_lbl
 The test label. More...

string m_fname
 The test filename. More...

string m_fnt_name
 The test function name (if supported with use class::method). More...

long m_lineno
 The test line number. More...


Friends

ostream & operator<< (ostream &ostr, const TestComponent::ErrorReport &my_error_report)
 Output the error report on the output stream. More...


Detailed Description

Failed test report.

Definition at line 37 of file TestComponent.hh.


Constructor & Destructor Documentation

ccunit::TestComponent::ErrorReport::ErrorReport const char *    type_name,
const string &    lbl,
const char *    fname,
const char *    fnt_name,
long    lineno
 

Construct the error report.

Definition at line 32 of file TestComponent.cc.


Member Function Documentation

const string& ccunit::TestComponent::ErrorReport::getFileName   const [inline]
 

Get the name of the file where the test failed.

Definition at line 55 of file TestComponent.hh.

References m_to_name.

const string& ccunit::TestComponent::ErrorReport::getLabel   const [inline]
 

Get the test label.

Definition at line 52 of file TestComponent.hh.

References m_lbl.

const string& ccunit::TestComponent::ErrorReport::getLineNumber   const [inline]
 

Get the line number of the failed test.

Definition at line 58 of file TestComponent.hh.

References m_to_name.

const string& ccunit::TestComponent::ErrorReport::getObject   const [inline]
 

Test Object ID.

Definition at line 49 of file TestComponent.hh.

References m_to_name.

const string& ccunit::TestComponent::ErrorReport::getTestFunctionName   const [inline]
 

Get the function name where the test failed.

Definition at line 61 of file TestComponent.hh.

References m_to_name.


Friends And Related Function Documentation

ostream& operator<< ostream &    ostr,
const TestComponent::ErrorReport &    my_error_report
[friend]
 

Output the error report on the output stream.

Definition at line 6 of file TestComponent.cc.


Member Data Documentation

string ccunit::TestComponent::ErrorReport::m_fname [private]
 

The test filename.

Definition at line 71 of file TestComponent.hh.

string ccunit::TestComponent::ErrorReport::m_fnt_name [private]
 

The test function name (if supported with use class::method).

Definition at line 74 of file TestComponent.hh.

string ccunit::TestComponent::ErrorReport::m_lbl [private]
 

The test label.

Definition at line 68 of file TestComponent.hh.

Referenced by getLabel.

long ccunit::TestComponent::ErrorReport::m_lineno [private]
 

The test line number.

Definition at line 77 of file TestComponent.hh.

string ccunit::TestComponent::ErrorReport::m_to_name [private]
 

The rtti (i.e., typeid) name of the test object.

Definition at line 65 of file TestComponent.hh.

Referenced by getFileName, getLineNumber, getObject, and getTestFunctionName.


The documentation for this class was generated from the following files:
Generated on Tue Apr 2 15:33:26 2002 for libccunit by doxygen 1.2.14 written by Dimitri van Heesch, © 1997-2002

Project hosted on sourceforge SourceForge Logo