File: test_failure.cpp

package info (click to toggle)
indigo 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,936 kB
  • sloc: ansic: 332,816; cpp: 169,470; python: 20,033; java: 13,701; cs: 9,979; asm: 8,475; sql: 6,743; xml: 6,354; javascript: 1,245; sh: 555; php: 506; makefile: 54
file content (33 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "test_failure.h"
using namespace indigo;
Failure::Failure(const char* exception, const char* message, const char* test_name, const char* file_name, int line_number) : _lineNumber(line_number)
{
    _message.appendString(message, true);
    _fileName.appendString(file_name, true);
    _testName.appendString(test_name, true);
    _exception.appendString(exception, true);
}

int Failure::getLineNumber() const
{
    return _lineNumber;
}

const char* Failure::getMessage() const
{
    return _message.ptr();
}
const char* Failure::getException() const
{
    return _exception.ptr();
}

const char* Failure::getTestName() const
{
    return _testName.ptr();
}

const char* Failure::getFileName() const
{
    return _fileName.ptr();
}