5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TESTING_PROPERTY_SUMMARY_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TESTING_PROPERTY_SUMMARY_HPP_
10#include "arene/base/stdlib_choice/cstddef.hpp"
11#include "arene/base/stdlib_choice/cstdint.hpp"
40 template <
class Ostream, constra
ints<
typename Ostream::
char_type,
typename Ostream::traits_type> =
nullptr>
43 <<
"PROPERTY " << (summary.failed ?
"FAIL" :
"PASS")
44 <<
"\nseed: " << summary.seed
45 <<
"\nsuccesses: " << summary.successes
46 <<
"\ndiscards: " << summary.discards;
49 if (summary.first_failure.has_value()) {
50 auto const& error = *summary.first_failure;
51 out <<
"\nproperty not satisfied [" << error.location.file <<
":" << error.location.line
52 <<
"]\nARENE_PROP_ASSERT(" << error.strings.arg1 <<
")";
54 out <<
"\nreached max discards";
Implementation of std::optional for pre-C++17 compilers, and which replaces defined undefined behavio...
Definition optional.hpp:122
Definition customization.hpp:31
Definition accumulate.hpp:37
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
::uint64_t uint64_t
A 64-bit unsigned integer type.
Definition cstdint.hpp:47
result of a property run
Definition property_summary.hpp:24
std::size_t successes
Definition property_summary.hpp:25
optional< property_error > first_failure
Definition property_summary.hpp:29
std::uint64_t seed
Definition property_summary.hpp:28
std::size_t discards
Definition property_summary.hpp:26
bool failed
Definition property_summary.hpp:27
friend constexpr auto operator<<(Ostream &out, property_summary const &summary) -> Ostream &
stream a human-readable report of a property_summary
Definition property_summary.hpp:41