8#ifndef BEAST_UNIT_TEST_RESULTS_HPP
9#define BEAST_UNIT_TEST_RESULTS_HPP
11#include <xrpl/beast/unit_test/detail/const_container.h>
154 total_ += r.tests.total();
void insert(std::string const &s)
Insert a string into the log.
std::size_t failed() const
Returns the number of failed test conditions.
void pass()
Register a successful test condition.
std::size_t total() const
Returns the total number of test conditions.
void fail(std::string const &reason="")
Register a failed test condition.
Holds a set of test condition outcomes in a testcase.
case_results(std::string const &name="")
tests_t tests
Memberspace for a container of test condition outcomes.
log_t log
Memberspace for a container of testcase log messages.
std::string const & name() const
Returns the name of this testcase.
Adapter to constrain a container interface.
size_type size() const
Returns the number of items in the container.
Holds the results of running a set of testsuites.
void insert(suite_results const &r)
std::size_t failed() const
Returns the number of failures.
std::size_t cases() const
Returns the total number of test cases.
void insert(suite_results &&r)
Insert a set of suite results.
std::size_t total() const
Returns the total number of test conditions.
Holds the set of testcase results in a suite.
std::string const & name() const
Returns the name of this suite.
std::size_t total() const
Returns the total number of test conditions.
std::size_t failed() const
Returns the number of failures.
void insert(case_results const &r)
void insert(case_results &&r)
Insert a set of testcase results.
suite_results(std::string const &name="")
T emplace_back(T... args)
Holds the result of evaluating one test condition.
test(bool pass_, std::string const &reason_)