Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Member Functions | Static Public Member Functions | List of all members
dev::test::Listener Class Referenceabstract

Allows observing test execution process. More...

#include <TestHelper.h>

Inheritance diagram for dev::test::Listener:
[legend]

Classes

class  ExecTimeGuard
 Test started/finished notification RAII helper. More...
 

Public Member Functions

virtual ~Listener ()=default
 
virtual void suiteStarted (std::string const &)
 
virtual void testStarted (std::string const &_name)=0
 
virtual void testFinished (int64_t _gasUsed)=0
 

Static Public Member Functions

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)
 

Detailed Description

Allows observing test execution process.

This class also provides methods for registering and notifying the listener

Definition at line 174 of file TestHelper.h.

Constructor & Destructor Documentation

virtual dev::test::Listener::~Listener ( )
virtualdefault

Member Function Documentation

void dev::test::Listener::notifySuiteStarted ( std::string const &  _name)
static

Definition at line 592 of file TestHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void dev::test::Listener::notifyTestFinished ( int64_t  _gasUsed)
static

Definition at line 604 of file TestHelper.cpp.

void dev::test::Listener::notifyTestStarted ( std::string const &  _name)
static

Definition at line 598 of file TestHelper.cpp.

void dev::test::Listener::registerListener ( Listener _listener)
static

Definition at line 587 of file TestHelper.cpp.

virtual void dev::test::Listener::suiteStarted ( std::string const &  )
inlinevirtual

Reimplemented in dev::test::Stats.

Definition at line 179 of file TestHelper.h.

Here is the caller graph for this function:

virtual void dev::test::Listener::testFinished ( int64_t  _gasUsed)
pure virtual

Implemented in dev::test::Stats.

virtual void dev::test::Listener::testStarted ( std::string const &  _name)
pure virtual

Implemented in dev::test::Stats.


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