quickcheck

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t TestingT, cfg Config, f func(t statefulTest.T))

Run the given testing function `f` multiple times. Each run will be executed with different values in generators. When an error is found, we try to shrink the test run before showing the final error. Only the error message in the shrunk execution and the logs from this run will be shown.

Types

type Config

type Config struct {
	NumberOfRuns      int
	MaxShrinkDuration time.Duration
	PrintAllLogs      bool
}

type TestingT

type TestingT interface {
	Errorf(format string, args ...interface{})
	FailNow()
	Failed() bool
	Logf(format string, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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