testx

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, want, have any)

func AssertErr

func AssertErr(t *testing.T, err error)

func AssertInRange

func AssertInRange[T constraints.Ordered](t *testing.T, val, lower, upper T)

func AssertNoErr

func AssertNoErr(t *testing.T, err error)

func Name

func Name(i int) string

func RunIth

func RunIth(i int, t *testing.T, f func(t *testing.T))

func RunTestsParallel

func RunTestsParallel[TEST any](tx *Tx, tests []TEST, runFnc func(tx *Tx, test TEST))

Types

type Tx

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

func NewTx

func NewTx(t *testing.T) *Tx

func (*Tx) AssertEqual

func (tx *Tx) AssertEqual(want, have any)

func (*Tx) AssertErr

func (tx *Tx) AssertErr(err error)

func (*Tx) AssertNoErr

func (tx *Tx) AssertNoErr(err error)

func (*Tx) T

func (tx *Tx) T() *testing.T

Jump to

Keyboard shortcuts

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