Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Types | Static Private Attributes | List of all members
dev::test::TestOutputHelper Class Reference

#include <TestOutputHelper.h>

Inheritance diagram for dev::test::TestOutputHelper:
[legend]
Collaboration diagram for dev::test::TestOutputHelper:
[legend]

Public Member Functions

 TestOutputHelper ()
 
 ~TestOutputHelper ()
 

Static Public Member Functions

static void initTest (int _maxTests=1)
 
static void initTest (json_spirit::mValue &_v)
 
static bool passTest (json_spirit::mObject &_o, std::string &_testName)
 
static void setMaxTests (int _count)
 
static void setCurrentTestFileName (std::string _name)
 
static std::string const & testName ()
 
static std::string const & caseName ()
 
static std::string const & testFileName ()
 
static void finishTest ()
 
static void printTestExecStats ()
 

Private Types

typedef std::pair< double, std::string > execTimeName
 

Static Private Attributes

static Timer m_timer
 
static size_t m_currTest = 0
 
static size_t m_maxTests = 0
 
static std::string m_currentTestName = "n/a"
 
static std::string m_currentTestCaseName = "n/a"
 
static std::string m_currentTestFileName = "n/a"
 
static std::vector< execTimeNamem_execTimeResults
 

Detailed Description

Definition at line 30 of file TestOutputHelper.h.

Member Typedef Documentation

typedef std::pair<double, std::string> dev::test::TestOutputHelper::execTimeName
private

Definition at line 52 of file TestOutputHelper.h.

Constructor & Destructor Documentation

dev::test::TestOutputHelper::TestOutputHelper ( )
inline

Definition at line 33 of file TestOutputHelper.h.

Here is the call graph for this function:

dev::test::TestOutputHelper::~TestOutputHelper ( )
inline

Definition at line 44 of file TestOutputHelper.h.

Here is the call graph for this function:

Member Function Documentation

static std::string const& dev::test::TestOutputHelper::caseName ( )
inlinestatic

Definition at line 40 of file TestOutputHelper.h.

Here is the caller graph for this function:

void TestOutputHelper::finishTest ( )
static

Definition at line 90 of file TestOutputHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestOutputHelper::initTest ( int  _maxTests = 1)
static

Definition at line 40 of file TestOutputHelper.cpp.

Here is the caller graph for this function:

void TestOutputHelper::initTest ( json_spirit::mValue _v)
static

Definition at line 52 of file TestOutputHelper.cpp.

Here is the call graph for this function:

bool TestOutputHelper::passTest ( json_spirit::mObject _o,
std::string &  _testName 
)
static

Definition at line 64 of file TestOutputHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void TestOutputHelper::printTestExecStats ( )
static

Definition at line 102 of file TestOutputHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dev::test::TestOutputHelper::setCurrentTestFileName ( std::string  _name)
inlinestatic

Definition at line 38 of file TestOutputHelper.h.

static void dev::test::TestOutputHelper::setMaxTests ( int  _count)
inlinestatic

Definition at line 37 of file TestOutputHelper.h.

Here is the caller graph for this function:

static std::string const& dev::test::TestOutputHelper::testFileName ( )
inlinestatic

Definition at line 41 of file TestOutputHelper.h.

Here is the call graph for this function:

static std::string const& dev::test::TestOutputHelper::testName ( )
inlinestatic

Definition at line 39 of file TestOutputHelper.h.

Here is the caller graph for this function:

Member Data Documentation

string TestOutputHelper::m_currentTestCaseName = "n/a"
staticprivate

Definition at line 50 of file TestOutputHelper.h.

string TestOutputHelper::m_currentTestFileName = "n/a"
staticprivate

Definition at line 51 of file TestOutputHelper.h.

string TestOutputHelper::m_currentTestName = "n/a"
staticprivate

Definition at line 49 of file TestOutputHelper.h.

size_t TestOutputHelper::m_currTest = 0
staticprivate

Definition at line 47 of file TestOutputHelper.h.

std::vector< TestOutputHelper::execTimeName > TestOutputHelper::m_execTimeResults
staticprivate

Definition at line 53 of file TestOutputHelper.h.

size_t TestOutputHelper::m_maxTests = 0
staticprivate

Definition at line 48 of file TestOutputHelper.h.

Timer TestOutputHelper::m_timer
staticprivate

Definition at line 46 of file TestOutputHelper.h.


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