Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
arene::base::testing::property_summary Struct Reference

result of a property run More...

Public Attributes

std::size_t discards
 
bool failed
 
optional< property_error > first_failure
 
std::uint64_t seed
 
std::size_t successes
 

Friends

template<class Ostream, constraints< typename Ostream::char_type, typename Ostream::traits_type > = nullptr>
constexpr auto operator<< (Ostream &out, property_summary const &summary) -> Ostream &
 stream a human-readable report of a property_summary
 

Detailed Description

result of a property run

Aggregates the statistics gathered during a property run along with the first counterexample encountered, if any.

Friends And Related Symbol Documentation

◆ operator<<

template<class Ostream, constraints< typename Ostream::char_type, typename Ostream::traits_type > = nullptr>
auto operator<< ( Ostream & out,
property_summary const & summary ) -> Ostream&
friend

stream a human-readable report of a property_summary

Template Parameters
Ostreamoutput stream type supporting operator<< for strings, integers, and booleans
Parameters
outdestination stream
summarythe summary to format
Returns
reference to out, to support chaining
Attention
Output formatting may change at any time. If consistent output formatting is needed, please implement a newtype formatter.

Member Data Documentation

◆ discards

std::size_t arene::base::testing::property_summary::discards

◆ failed

bool arene::base::testing::property_summary::failed

◆ first_failure

optional<property_error> arene::base::testing::property_summary::first_failure

◆ seed

std::uint64_t arene::base::testing::property_summary::seed

◆ successes

std::size_t arene::base::testing::property_summary::successes

The documentation for this struct was generated from the following file: