Module arbitrary

Source
Expand description

Arbitrary data generation for serialization proptests

Functions§

datetime_full
Returns a strategy that produces an arbitrary chrono::DateTime<Utc>, based on the full valid range of the type.
datetime_u32
Returns a strategy that produces an arbitrary time from a u32 number of seconds past the epoch.
max_allocation_is_big_enough
Allocate a maximum-sized vector of cloned items, and serialize that array.