cardano-wallet-test-utils-2020.12.8: Shared utilities for writing unit and property tests.
Copyright© 2018-2020 IOHK
LicenseApache-2.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Utils.Time

Description

Provides utility functions relating to testing with times and dates.

Synopsis

Documentation

data UniformTime Source #

A wrapper for UTCTime whose Arbitrary instance spans a uniform range of dates and a mixture of time precisions.

genUniformTime :: Gen UTCTime Source #

Generate UTCTime values over a uniform range of dates and a mixture of time precisions.

Dates will be generated in a range that's bounded by defaultLowerBound and defaultUpperBound.

genUniformTimeWithinRange :: Day -> Day -> Gen UTCTime Source #

Generate UTCTime values over a uniform range of dates and a mixture of time precisions.

Dates will be generated in a range that's bounded by the given minimum and maximum Julian day arguments.