testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TB

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

func NewTB

func NewTB(t testing.TB) *TB

func (*TB) AssertErrors

func (tb *TB) AssertErrors() bool

AssertErrors asserts that errors were recorded.

func (*TB) AssertNoErrors

func (tb *TB) AssertNoErrors() bool

AssertNoErrors asserts that no errors were recorded.

func (*TB) Cleanup

func (tb *TB) Cleanup(f func())

func (*TB) Errorf

func (tb *TB) Errorf(format string, args ...any)

func (*TB) RunCleanups

func (tb *TB) RunCleanups()

RunCleanups runs the registered cleanup functions in LIFO order.

Jump to

Keyboard shortcuts

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