Public Member Functions | Protected Member Functions
hayai::Test Class Reference

Base test class. More...

#include <hayai_test.hpp>

Inheritance diagram for hayai::Test:
Inheritance graph
[legend]

List of all members.

Public Member Functions

uint64_t Run (std::size_t iterations)
 Run the test.
virtual void SetUp ()
 Set up the testing fixture for execution of a run.
virtual void TearDown ()
virtual ~Test ()

Protected Member Functions

virtual void TestBody ()
 Test body.

Detailed Description

Base test class.

SetUp is invoked before each run, and TearDown is invoked once the run is finished. Iterations rely on the same fixture for every run.

The default test class does not contain any actual code in the SetUp and TearDown methods, which means that tests can inherit this class directly for non-fixture based benchmarking tests.

Definition at line 20 of file hayai_test.hpp.


Constructor & Destructor Documentation

virtual hayai::Test::~Test ( ) [inline, virtual]

Definition at line 71 of file hayai_test.hpp.


Member Function Documentation

uint64_t hayai::Test::Run ( std::size_t  iterations) [inline]

Run the test.

Parameters:
iterationsNumber of iterations to gather data for.
Returns:
the number of nanoseconds the run took.

Definition at line 42 of file hayai_test.hpp.

virtual void hayai::Test::SetUp ( ) [inline, virtual]

Set up the testing fixture for execution of a run.

Reimplemented in FastDeliveryManFixture, and SlowDeliveryManFixture.

Definition at line 24 of file hayai_test.hpp.

virtual void hayai::Test::TearDown ( ) [inline, virtual]

Tear down the previously set up testing fixture after the execution run.

Reimplemented in FastDeliveryManFixture, and SlowDeliveryManFixture.

Definition at line 32 of file hayai_test.hpp.

virtual void hayai::Test::TestBody ( ) [inline, protected, virtual]

Test body.

Executed for each iteration the benchmarking test is run.

Definition at line 79 of file hayai_test.hpp.


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


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:44