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

#include <Stats.h>

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

Classes

struct  Item
 

Public Types

using clock = std::chrono::high_resolution_clock
 

Public Member Functions

 ~Stats ()
 
void suiteStarted (std::string const &_name) override
 
void testStarted (std::string const &_name) override
 
void testFinished (int64_t _gasUsed) override
 
- Public Member Functions inherited from dev::test::Listener
virtual ~Listener ()=default
 

Static Public Member Functions

static Statsget ()
 
- Static Public Member Functions inherited from dev::test::Listener
static void registerListener (Listener &_listener)
 
static void notifySuiteStarted (std::string const &_name)
 
static void notifyTestStarted (std::string const &_name)
 
static void notifyTestFinished (int64_t _gasUsed)
 

Private Attributes

clock::time_point m_tp
 
std::string m_currentSuite
 
std::string m_currentTest
 
std::vector< Itemm_stats
 

Detailed Description

Definition at line 30 of file Stats.h.

Member Typedef Documentation

using dev::test::Stats::clock = std::chrono::high_resolution_clock

Definition at line 33 of file Stats.h.

Constructor & Destructor Documentation

dev::test::Stats::~Stats ( )

Definition at line 56 of file Stats.cpp.

Here is the call graph for this function:

Member Function Documentation

Stats & dev::test::Stats::get ( )
static

Definition at line 29 of file Stats.cpp.

void dev::test::Stats::suiteStarted ( std::string const &  _name)
overridevirtual

Reimplemented from dev::test::Listener.

Definition at line 35 of file Stats.cpp.

void dev::test::Stats::testFinished ( int64_t  _gasUsed)
overridevirtual

Implements dev::test::Listener.

Definition at line 46 of file Stats.cpp.

void dev::test::Stats::testStarted ( std::string const &  _name)
overridevirtual

Implements dev::test::Listener.

Definition at line 40 of file Stats.cpp.

Member Data Documentation

std::string dev::test::Stats::m_currentSuite
private

Definition at line 52 of file Stats.h.

std::string dev::test::Stats::m_currentTest
private

Definition at line 53 of file Stats.h.

std::vector<Item> dev::test::Stats::m_stats
private

Definition at line 54 of file Stats.h.

clock::time_point dev::test::Stats::m_tp
private

Definition at line 51 of file Stats.h.


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