rsvs3D  0.0.0
Codes for the c++ implementation of the 3D RSVS
rsvstest::customtest Class Reference

Class for customtest. More...

#include <test.hpp>

Public Member Functions

 customtest (const char *testNameIn="")
 
int ReturnErrCount ()
 
int Run (std::function< int()> test, const char *funcName, int expectedTime=-1)
 
int RunSilent (std::function< int()> test, const char *funcName, int expectedTime=-1)
 Runs a test function silently except if it returns an error. More...
 
void PrintSummary ()
 

Private Attributes

int testCount
 
int errFlag
 
int errCount
 
int unhandledError
 
int prevTime
 
int runTotal
 
int lastRunTime
 
std::string testName
 

Detailed Description

Class for customtest.

Definition at line 50 of file test.hpp.

Member Function Documentation

◆ RunSilent()

int customtest::RunSilent ( std::function< int()>  test,
const char *  funcName,
int  expectedTime = -1 
)

Runs a test function silently except if it returns an error.

Parameters
[in]testThe test function
[in]funcNamestring descriptor for the test.
Returns
int number of errors captured.

Definition at line 281 of file test.cpp.


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