generator

package
v0.0.0-...-e60f6ae Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error() *rapid.Generator[error]

Error returns a new error created by calling errors.New with a random string.

func SliceOfNZero

func SliceOfNZero[T any](minLen, maxLen int) *rapid.Generator[[]T]

SliceOfNZero returns a generator that makes slices of the zero value of T. The range of slice lengths are determined as in rapid.SliceOfN.

Types

This section is empty.

Jump to

Keyboard shortcuts

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