assert

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAssertionFailure      = errors.New("assertion failure")
	ErrFatalAssertionFailure = errors.New("fatal")
)

Functions

func So

func So(t *testing.T, actual any, assertion Func, expected ...any)

Types

type Func

type Func func(actual any, expected ...any) error

type T

type T struct{ *testing.T }

func New

func New(t *testing.T) *T

func (*T) So

func (this *T) So(actual any, assertion Func, expected ...any) (ok bool)

Jump to

Keyboard shortcuts

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