#include <hayai_console_outputter.hpp>
Public Member Functions | |
virtual void | Begin (const std::size_t &enabledCount, const std::size_t &disabledCount) |
Begin benchmarking. | |
void | BeginOrSkipTest (const std::string &fixtureName, const std::string &testName, const TestParametersDescriptor ¶meters, const std::size_t &runsCount, const std::size_t &iterationsCount, const bool skip) |
virtual void | BeginTest (const std::string &fixtureName, const std::string &testName, const TestParametersDescriptor ¶meters, const std::size_t &runsCount, const std::size_t &iterationsCount) |
Begin benchmark test run. | |
ConsoleOutputter (std::ostream &stream=std::cout) | |
Initialize console outputter. | |
virtual void | End (const std::size_t &executedCount, const std::size_t &disabledCount) |
End benchmarking. | |
virtual void | EndTest (const std::string &fixtureName, const std::string &testName, const TestParametersDescriptor ¶meters, const TestResult &result) |
End benchmark test run. | |
virtual void | SkipDisabledTest (const std::string &fixtureName, const std::string &testName, const TestParametersDescriptor ¶meters, const std::size_t &runsCount, const std::size_t &iterationsCount) |
Skip disabled benchmark test run. | |
Public Attributes | |
std::ostream & | _stream |
Console outputter.
Prints the result to standard output.
Definition at line 12 of file hayai_console_outputter.hpp.
hayai::ConsoleOutputter::ConsoleOutputter | ( | std::ostream & | stream = std::cout | ) | [inline] |
Initialize console outputter.
stream | Output stream. Must exist for the entire duration of the outputter's use. |
Definition at line 20 of file hayai_console_outputter.hpp.
virtual void hayai::ConsoleOutputter::Begin | ( | const std::size_t & | enabledCount, |
const std::size_t & | disabledCount | ||
) | [inline, virtual] |
Begin benchmarking.
The total number of benchmarks registred is the sum of the two counts passed to the outputter.
enabledCount | Number of benchmarks to be executed. |
disabledCount | Number of disabled benchmarks to be skipped. |
Implements hayai::Outputter.
Definition at line 27 of file hayai_console_outputter.hpp.
void hayai::ConsoleOutputter::BeginOrSkipTest | ( | const std::string & | fixtureName, |
const std::string & | testName, | ||
const TestParametersDescriptor & | parameters, | ||
const std::size_t & | runsCount, | ||
const std::size_t & | iterationsCount, | ||
const bool | skip | ||
) | [inline] |
Definition at line 75 of file hayai_console_outputter.hpp.
virtual void hayai::ConsoleOutputter::BeginTest | ( | const std::string & | fixtureName, |
const std::string & | testName, | ||
const TestParametersDescriptor & | parameters, | ||
const std::size_t & | runsCount, | ||
const std::size_t & | iterationsCount | ||
) | [inline, virtual] |
Begin benchmark test run.
fixtureName | Fixture name. |
testName | Test name. |
parameters | Test parameter description. |
runsCount | Number of runs to be executed. |
iterationsCount | Number of iterations per run. |
Implements hayai::Outputter.
Definition at line 104 of file hayai_console_outputter.hpp.
virtual void hayai::ConsoleOutputter::End | ( | const std::size_t & | executedCount, |
const std::size_t & | disabledCount | ||
) | [inline, virtual] |
End benchmarking.
executedCount | Number of benchmarks that have been executed. |
disabledCount | Number of benchmarks that have been skipped because they are disabled. |
Implements hayai::Outputter.
Definition at line 51 of file hayai_console_outputter.hpp.
virtual void hayai::ConsoleOutputter::EndTest | ( | const std::string & | fixtureName, |
const std::string & | testName, | ||
const TestParametersDescriptor & | parameters, | ||
const TestResult & | result | ||
) | [inline, virtual] |
End benchmark test run.
fixtureName | Fixture name. |
testName | Test name. |
parameters | Test parameter description. |
result | Test result. |
Implements hayai::Outputter.
Definition at line 136 of file hayai_console_outputter.hpp.
virtual void hayai::ConsoleOutputter::SkipDisabledTest | ( | const std::string & | fixtureName, |
const std::string & | testName, | ||
const TestParametersDescriptor & | parameters, | ||
const std::size_t & | runsCount, | ||
const std::size_t & | iterationsCount | ||
) | [inline, virtual] |
Skip disabled benchmark test run.
fixtureName | Fixture name. |
testName | Test name. |
parameters | Test parameter description. |
runsCount | Number of runs to be executed. |
iterationsCount | Number of iterations per run. |
Implements hayai::Outputter.
Definition at line 119 of file hayai_console_outputter.hpp.
std::ostream& hayai::ConsoleOutputter::_stream |
Definition at line 256 of file hayai_console_outputter.hpp.