testfork

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pick

func Pick[E any](t *T, values []E) E

Pick returns a value from the values list

func PickEnum

func PickEnum[E any](t *T, item E, other ...E) E

PickEnum returns a value from the value enums

func RunTest

func RunTest(t *testing.T, f func(t *T))

RunTest runs the test function `f` multiple times util all the values in `Pick` are tested.

Types

type T

type T struct {
	*testing.T
	// contains filtered or unexported fields
}

T is used by for test

Jump to

Keyboard shortcuts

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