errs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t Testing, err error)

func Defer

func Defer(t Testing, fn func() error)

func Equal

func Equal[T any](t Testing, exp, got T)

func Must

func Must[T any](v T, err error) func(Testing) T

func Must2

func Must2[T1, T2 any](t1 T1, t2 T2, err error) func(Testing) (T1, T2)

Types

type TestMain

type TestMain struct {
	*testing.M
	// contains filtered or unexported fields
}

func NewTestMain

func NewTestMain(m *testing.M) *TestMain

func (*TestMain) Errorf

func (t *TestMain) Errorf(s string, a ...interface{})

func (*TestMain) Exit

func (t *TestMain) Exit()

func (*TestMain) FailNow

func (t *TestMain) FailNow()

func (*TestMain) Helper

func (t *TestMain) Helper()

func (*TestMain) Logf

func (t *TestMain) Logf(s string, a ...any)

func (*TestMain) Run

func (t *TestMain) Run()

type Testing

type Testing interface {
	Helper()
	Logf(string, ...any)
	require.TestingT
}

Jump to

Keyboard shortcuts

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