testing

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record[A any, E any] struct {
	Name    string
	Subject func(t *testing.T) (A, error)
	Expect  func(t *testing.T) (E, error)
	Assert  func(t *testing.T, r *Record[A, E]) bool
}

type Table

type Table[A, E any] struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable[A, E any](records []Record[A, E]) *Table[A, E]

func (*Table[A, E]) Run

func (table *Table[A, E]) Run(test *testing.T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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