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

Parameters for dates() generator. More...

#include <temporal.h>

Public Attributes

std::optional< Date > min_value
 Minimum date (inclusive). Default: January 1 of MIN_YEAR.
std::optional< Date > max_value
 Maximum date (inclusive). Default: December 31 of MAX_YEAR.
std::optional< std::vector< Weekday > > weekdays
std::optional< std::vector< Month > > months

Detailed Description

Parameters for dates() generator.

Member Data Documentation

◆ months

std::optional<std::vector<Month> > hegel::generators::temporal::DatesParams::months

Draw only dates in these months, moving a drawn day in another month to the nearest allowed day inside the bounds as weekdays does. Default: every month.

◆ weekdays

std::optional<std::vector<Weekday> > hegel::generators::temporal::DatesParams::weekdays

Draw only dates on these weekdays. A drawn day on another weekday is moved to the nearest allowed day inside the bounds rather than rejected. Default: every weekday.


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