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

Parameters for offsets() generator. More...

#include <temporal.h>

Public Attributes

std::optional< UtcOffset > min_value
std::optional< UtcOffset > max_value
Granularity granularity = Granularity::Seconds
 The drawn offset is a whole number of these units.
bool allow_unknown = false

Detailed Description

Parameters for offsets() generator.

Member Data Documentation

◆ allow_unknown

bool hegel::generators::temporal::OffsetsParams::allow_unknown = false

Whether the draw may yield the unknown offset, RFC 3339's -00:00. It shrinks to a known offset first.

◆ max_value

std::optional<UtcOffset> hegel::generators::temporal::OffsetsParams::max_value

Maximum offset (inclusive), which must be known. Default: MAX_OFFSET.

◆ min_value

std::optional<UtcOffset> hegel::generators::temporal::OffsetsParams::min_value

Minimum offset (inclusive), which must be known. Default: -MAX_OFFSET.


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