Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::temporal::SpansParams Struct Reference

Parameters for spans() generator. More...

#include <temporal.h>

Public Attributes

std::optional< UnitBounds > years
 Bounds on years.
std::optional< UnitBounds > months
 Bounds on months.
std::optional< UnitBounds > weeks
 Bounds on weeks.
std::optional< UnitBounds > days
 Bounds on days.
std::optional< UnitBounds > hours
 Bounds on hours.
std::optional< UnitBounds > minutes
 Bounds on minutes.
std::optional< UnitBounds > seconds
 Bounds on seconds.
std::optional< UnitBounds > milliseconds
 Bounds on milliseconds.
std::optional< UnitBounds > microseconds
 Bounds on microseconds.
std::optional< UnitBounds > nanoseconds
SpanSign sign = SpanSign::Uniform
 How the units' signs are drawn.

Detailed Description

Parameters for spans() generator.

A unit with bounds is enabled and drawn within them; a unit without is always 0. When no unit has bounds, every unit is enabled within ±INT64_MAX, or [0, INT64_MAX] under SpanSign::NonNegative.

Member Data Documentation

◆ nanoseconds

std::optional<UnitBounds> hegel::generators::temporal::SpansParams::nanoseconds

Bounds on nanoseconds.


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