#include <testpartresult.h>
Public Member Functions | |
| TestPartResult (Test *test, const SimpleString &fileName, long lineNumber, const SimpleString &message, testType type) | |
| Main constructor used to initialize all details about the result of an assertion. | |
| void | setNext (TestPartResult *next) |
| Set the next TestPartResult in the list. | |
| TestPartResult * | getNext () const |
| Get the next TestPartResult in the list. | |
| testType | getType () const |
| Get the type of the TestPartResult. | |
| const SimpleString & | getMessage () const |
| Get the message (or condition) of the assertion. | |
| Test * | getTest () const |
| Get the Test where the assertion is located. | |
| const SimpleString & | getFileName () const |
| Get the file name where the assertion is located. | |
| long | getLineNumber () const |
| Get the line number where the assertion is located. | |
Protected Attributes | |
| SimpleString | message_ |
| Test * | test_ |
| SimpleString | fileName_ |
| long | lineNumber_ |
Private Attributes | |
| TestPartResult * | next_ |
| testType | type_ |
It contains the line and the file of the assertion, the result (success, failure or error), the condition (or message), and the Test class where the assertion was processed.
|
||||||||||||||||||||||||
|
Main constructor used to initialize all details about the result of an assertion.
|
|
|
Get the file name where the assertion is located.
|
|
|
Get the line number where the assertion is located.
|
|
|
Get the message (or condition) of the assertion.
|
|
|
Get the next TestPartResult in the list.
|
|
|
Get the Test where the assertion is located.
|
|
|
Get the type of the TestPartResult. This represents the result of the assertion.
|
|
|
Set the next TestPartResult in the list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8