|
dspp
Digital Signal Processing library for C++
|
Abstract class for building custom reporters. More...
#include <benchtest.hpp>

Public Member Functions | |
| virtual void | Start (size_t cases, size_t total_qty)=0 |
| Start is called before any tests are run. | |
| virtual void | End (long ms)=0 |
| End is called after all tests are run. | |
| virtual void | StartCase (size_t case_qty)=0 |
| StartCase is called before any tests in a case are run. | |
| virtual void | EndCase (long ms)=0 |
| EndCase is called after all tests in a case are finished. | |
| virtual void | Run ()=0 |
| Run is called once before each test. | |
| virtual void | Pass (long ms)=0 |
| Pass is called at the end of a test that didn't report failures. | |
| virtual void | Fail (long ms)=0 |
| Fail is called at the end of a test that failed. | |
| virtual void | Bench (long iterations, double us)=0 |
| Bench is called during test to report a benchmark time. | |
| virtual void | Print (::std::string message)=0 |
| Print is called with miscellaneous annotations for a human-readable report. | |
| virtual void | Trace (::std::string message, const char *file, long line)=0 |
| Trace is called to print each line in a scoped trace. | |
| virtual void | Error (::std::string message, const char *file, long line)=0 |
| Error is called for each failure during a test. | |
Public Attributes | |
| class Info * | test_info |
Abstract class for building custom reporters.
A custom reporter might be desired for XML or JSON output to be parsed by another tool. You may also build a custom reporter by inheriting DefaultReporter if you just want a few adjustments.
1.8.7