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 (const std::string &expected, const std::string &actual, TestResult &result, const std::string &fileName, long lineNumber)
 
bool check (long expected, long 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() [1/2]

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

Definition at line 18 of file Test.cpp.

◆ Test() [2/2]

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

Definition at line 24 of file Test.cpp.

◆ ~Test()

virtual Test::~Test ( )
inlinevirtual

Definition at line 35 of file Test.h.

Member Function Documentation

◆ check() [1/2]

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

Definition at line 58 of file Test.cpp.

◆ check() [2/2]

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

Definition at line 41 of file Test.cpp.

◆ getFilename()

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

Definition at line 43 of file Test.h.

◆ getLineNumber()

long Test::getLineNumber ( ) const
inline

Definition at line 44 of file Test.h.

◆ getName()

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

Definition at line 42 of file Test.h.

◆ getNext()

Test * Test::getNext ( ) const

Definition at line 31 of file Test.cpp.

◆ run()

virtual void Test::run ( TestResult result)
pure virtual

◆ safe()

bool Test::safe ( ) const
inline

Definition at line 45 of file Test.h.

◆ setNext()

void Test::setNext ( Test test)

Definition at line 36 of file Test.cpp.

Member Data Documentation

◆ filename_

std::string Test::filename_
protected

Definition at line 54 of file Test.h.

◆ lineNumber_

long Test::lineNumber_
protected

Definition at line 55 of file Test.h.

◆ name_

std::string Test::name_
protected

Definition at line 52 of file Test.h.

◆ next_

Test* Test::next_
protected

Definition at line 53 of file Test.h.

◆ safeCheck_

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 Fri Nov 1 2024 03:43:44