MQLUNIT
Public Member Functions | List of all members
MQLUNIT_TestFailure Class Reference

Record of a failed Test execution. More...

Public Member Functions

 MQLUNIT_TestFailure (const MQLUNIT_Test *test, const string file, const uint line, const string method, const string message)
 Constructor : create a record of a failed test execution. More...
 
 ~MQLUNIT_TestFailure ()
 Descructor. More...
 
const MQLUNIT_TestgetTest () const
 Returns a failed test. More...
 
string getFile () const
 Returns a name of a file that contains a failed test. More...
 
uint getLine () const
 Returns a line in a file that triggered a failure. More...
 
string getMethod () const
 Returns a name of an assertion that failed (test method). More...
 
string getMessage () const
 Returns a failure description. More...
 

Detailed Description

Record of a failed Test execution.

Constructor & Destructor Documentation

◆ MQLUNIT_TestFailure()

MQLUNIT_TestFailure::MQLUNIT_TestFailure ( const MQLUNIT_Test test,
const string  file,
const uint  line,
const string  method,
const string  message 
)
inline

Constructor : create a record of a failed test execution.

Parameters
test: a test that failed
file: a name of a file that contains a failed test
line: a line in a file that triggered a failure
method: a name of an assertion that failed (test method)
message: a failure description
See also
MQLUNIT_Test

◆ ~MQLUNIT_TestFailure()

MQLUNIT_TestFailure::~MQLUNIT_TestFailure ( )
inline

Descructor.

Member Function Documentation

◆ getFile()

string MQLUNIT_TestFailure::getFile ( ) const
inline

Returns a name of a file that contains a failed test.

Returns
a name of a file that contains a failed test

◆ getLine()

uint MQLUNIT_TestFailure::getLine ( ) const
inline

Returns a line in a file that triggered a failure.

Returns
a line in a file that triggered a failure

◆ getMessage()

string MQLUNIT_TestFailure::getMessage ( ) const
inline

Returns a failure description.

Returns
a failure description

◆ getMethod()

string MQLUNIT_TestFailure::getMethod ( ) const
inline

Returns a name of an assertion that failed (test method).

Returns
a name of an assertion that failed (test method)

◆ getTest()

const MQLUNIT_Test* MQLUNIT_TestFailure::getTest ( ) const
inline

Returns a failed test.

Returns
a test that failed

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

Copyright © 2017 Eneset Group Trust