5#ifndef BEAST_UNIT_TEST_RECORDER_HPP
6#define BEAST_UNIT_TEST_RECORDER_HPP
8#include <xrpl/beast/unit_test/results.h>
9#include <xrpl/beast/unit_test/runner.h>
void insert(std::string const &s)
Insert a string into the log.
void pass()
Register a successful test condition.
void fail(std::string const &reason="")
Register a failed test condition.
Holds a set of test condition outcomes in a testcase.
tests_t tests
Memberspace for a container of test condition outcomes.
log_t log
Memberspace for a container of testcase log messages.
size_type size() const
Returns the number of items in the container.
A test runner that stores the results.
results const & report() const
Returns a report with the results of all completed suites.
virtual void on_suite_end() override
Called when a suite ends.
virtual void on_fail(std::string const &reason) override
Called for each failing condition.
virtual void on_case_end() override
Called when a new case ends.
virtual void on_case_begin(std::string const &name) override
Called when a new case starts.
virtual void on_suite_begin(suite_info const &info) override
Called when a new suite starts.
virtual void on_pass() override
Called for each passing condition.
virtual void on_log(std::string const &s) override
Called when a test logs output.
Holds the results of running a set of testsuites.
void insert(suite_results &&r)
Insert a set of suite results.
Unit test runner interface.
Associates a unit test type with metadata.
std::string full_name() const
Return the canonical suite name as a string.
Holds the set of testcase results in a suite.
void insert(case_results &&r)
Insert a set of testcase results.