Base test class. More...
#include <hayai_test.hpp>
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. |
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.
virtual hayai::Test::~Test | ( | ) | [inline, virtual] |
Definition at line 71 of file hayai_test.hpp.
uint64_t hayai::Test::Run | ( | std::size_t | iterations | ) | [inline] |
Run the test.
iterations | Number of iterations to gather data for. |
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.