shrinker

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Array

func Array(original arbitrary.Arbitrary) arbitrary.Shrinker

func Chain

func Chain(shrinkers ...arbitrary.Shrinker) arbitrary.Shrinker

func Collection added in v0.3.0

func Collection() arbitrary.Shrinker

func CollectionAllElements added in v0.3.0

func CollectionAllElements() arbitrary.Shrinker

func CollectionElements

func CollectionElements(original arbitrary.Arbitrary) arbitrary.Shrinker

func CollectionOneElement added in v0.3.0

func CollectionOneElement() arbitrary.Shrinker

func CollectionSizeRemoveBack added in v0.3.0

func CollectionSizeRemoveBack(index int) arbitrary.Shrinker

func CollectionSizeRemoveFront added in v0.3.0

func CollectionSizeRemoveFront(index int) arbitrary.Shrinker

func Fail added in v0.2.0

func Fail(err error) arbitrary.Shrinker

func Map

func Ptr added in v0.4.0

func Ptr(original arbitrary.Arbitrary, limit constraints.Ptr) arbitrary.Shrinker

func Slice

func Struct

func Struct(original arbitrary.Arbitrary) arbitrary.Shrinker

Struct is a shrinker for struct. Struct shrinking consists of shrinking individual fields one by one. Error is returned if struct type is not struct, length of fieldShrinks is not equal to number of struct fields or if any of the struct fields return an error during shrinking.

func Uint64

func Uint64(limits constraints.Uint64) arbitrary.Shrinker

Types

This section is empty.

Jump to

Keyboard shortcuts

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