quick

package
v0.0.0-...-3dde240 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Sizes: []int{
		0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
		10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
		20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
		30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
		99, 100, 101,
		127, 128, 129,
		255, 256, 257,
		1000, 1023, 1024, 1025,
		2000, 2095, 2048, 2049,
		4000, 4095, 4096, 4097,
	},
	Seed: 0,
}

Functions

func Check

func Check(f interface{}) error

Check is inspired by the standard quick.Check package, but enhances the API and tests arrays of larger sizes than the maximum of 50 hardcoded in testing/quick.

Types

type Config

type Config struct {
	Sizes []int
	Seed  int64
}

func (*Config) Check

func (c *Config) Check(f interface{}) error

type MakeValueFunc

type MakeValueFunc func(reflect.Value, *rand.Rand)

func MakeValueFuncOf

func MakeValueFuncOf(t reflect.Type) MakeValueFunc

Jump to

Keyboard shortcuts

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