generators

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Overview

Package generators contains several generally helpful rapid generators

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomSmallDuration

func RandomSmallDuration() *rapid.Generator[time.Duration]

RandomSmallDuration returns a random time.Duration value that is “reasonably” sized (smaller than one week).

func RandomSmallString

func RandomSmallString(min int) *rapid.Generator[string]

RandomSmallString returns a random small alphanumeric string.

func RandomSmallTime

func RandomSmallTime() *rapid.Generator[time.Time]

RandomSmallTime returns a random time.Time value that is “reasonably” small (within one week of an epoch time, which is currently midnight 2006-01-01 UTC).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL