Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Test Class Referenceabstract

#include <Test.h>

Public Member Functions

std::string getFilename () const
 
long getLineNumber () const
 
std::string getName () const
 
TestgetNext () const
 
virtual void run (TestResult &result)=0
 
bool safe () const
 
void setNext (Test *test)
 
 Test (const std::string &testName)
 
 Test (const std::string &testName, const std::string &filename, long lineNumber, bool safeCheck)
 
virtual ~Test ()
 

Protected Member Functions

bool check (long expected, long actual, TestResult &result, const std::string &fileName, long lineNumber)
 
bool check (const std::string &expected, const std::string &actual, TestResult &result, const std::string &fileName, long lineNumber)
 

Protected Attributes

std::string filename_
 
long lineNumber_
 
std::string name_
 
Testnext_
 
bool safeCheck_
 This is the line line number of the test, rather than the a single check. More...
 

Detailed Description

Definition at line 30 of file Test.h.

Constructor & Destructor Documentation

Test::Test ( const std::string &  testName)

Definition at line 20 of file Test.cpp.

Test::Test ( const std::string &  testName,
const std::string &  filename,
long  lineNumber,
bool  safeCheck 
)

Definition at line 26 of file Test.cpp.

virtual Test::~Test ( )
inlinevirtual

Definition at line 35 of file Test.h.

Member Function Documentation

bool Test::check ( long  expected,
long  actual,
TestResult result,
const std::string &  fileName,
long  lineNumber 
)
protected

Definition at line 43 of file Test.cpp.

bool Test::check ( const std::string &  expected,
const std::string &  actual,
TestResult result,
const std::string &  fileName,
long  lineNumber 
)
protected

Definition at line 60 of file Test.cpp.

std::string Test::getFilename ( ) const
inline

Definition at line 43 of file Test.h.

long Test::getLineNumber ( ) const
inline

Definition at line 44 of file Test.h.

std::string Test::getName ( ) const
inline

Definition at line 42 of file Test.h.

Test * Test::getNext ( ) const

Definition at line 33 of file Test.cpp.

virtual void Test::run ( TestResult result)
pure virtual
bool Test::safe ( ) const
inline

Definition at line 45 of file Test.h.

void Test::setNext ( Test test)

Definition at line 38 of file Test.cpp.

Member Data Documentation

std::string Test::filename_
protected

Definition at line 54 of file Test.h.

long Test::lineNumber_
protected

Definition at line 55 of file Test.h.

std::string Test::name_
protected

Definition at line 52 of file Test.h.

Test* Test::next_
protected

Definition at line 53 of file Test.h.

bool Test::safeCheck_
protected

This is the line line number of the test, rather than the a single check.

Definition at line 56 of file Test.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:54