CppTest home page CppTest project page

Test::Source Class Reference

Assertment source information. More...

#include <cpptest-source.h>

List of all members.

Public Member Functions

Friends


Detailed Description

Assertment source information.

Contains information about an assertment point.


Constructor & Destructor Documentation

Test::Source::Source (  ) 

Constructs an invalid source object, which filename and message are empty strings and the line equals zero.

Test::Source::Source ( const char *  file,
unsigned int  line,
const char *  msg 
)

Constructs a source object.

Parameters:
file Name of the file containing the failing function.
line Line where the function starts.
msg Expression (or message) that caused the failure.


Member Function Documentation

const string & Test::Source::file (  )  const

Returns:
Name of the file containing the failing function.

unsigned int Test::Source::line (  )  const

Returns:
Line where the function starts.

const string & Test::Source::message (  )  const

Returns:
Descriptive message.

const string & Test::Source::suite (  )  const

Returns:
Name of the suite, which the test belongs to.

const string & Test::Source::test (  )  const

Returns:
Name of failing test.


The documentation for this class was generated from the following files:
Supported by:

SourceForge Logo