testutil

package
v0.0.0-...-027dd3d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTest

func DoTest[T any](
	t *testing.T,
	tester func(T) error,
	cases []map[string]Case[T],
)

Types

type Case

type Case[T any] struct {
	Malleate func(*T)
	Error    func() error
}

type CaseIterator

type CaseIterator struct {
	// contains filtered or unexported fields
}

func NewCaseIterator

func NewCaseIterator[T any](components []map[string]T) CaseIterator

func (CaseIterator) Key

func (ci CaseIterator) Key() []string

func (*CaseIterator) Next

func (ci *CaseIterator) Next()

func (CaseIterator) Valid

func (ci CaseIterator) Valid() bool

Jump to

Keyboard shortcuts

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