CppTest
Version 2.0.0
|
#include <cpptest-source.h>
Public Member Functions | |
Source () | |
Source (const char *file, unsigned int line, const char *msg) | |
const std::string & | file () const |
unsigned int | line () const |
const std::string & | message () const |
const std::string & | suite () const |
const std::string & | test () const |
Friends | |
class | Suite |
Assertment source information.
Contains information about an assertment point.
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.
file | Name of the file containing the failing function. |
line | Line where the function starts. |
msg | Expression (or message) that caused the failure. |
const string & Test::Source::file | ( | ) | const |
Referenced by Test::CompilerOutput::assertment().
unsigned int Test::Source::line | ( | ) | const |
Referenced by Test::CompilerOutput::assertment().
const string & Test::Source::message | ( | ) | const |
Referenced by Test::CompilerOutput::assertment().
const string & Test::Source::suite | ( | ) | const |
const string & Test::Source::test | ( | ) | const |