test

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementsMatch

func ElementsMatch(t *testing.T, x, y any, msgAndArgs ...any) bool

func Empty

func Empty(t *testing.T, x any, msgAndArgs ...any) bool

func Equal

func Equal(t *testing.T, x, y any, msgAndArgs ...any) bool

func Fail

func Fail(t *testing.T, msgAndArgs ...any) bool

func FailNow

func FailNow(t *testing.T, msgAndArgs ...any) bool

func False

func False(t *testing.T, b bool, msgAndArgs ...any) bool

func NoError

func NoError(t *testing.T, err error, msgAndArgs ...any) bool

func NoPanic

func NoPanic(t *testing.T, f func(), msgAndArgs ...any) (b bool)

func NotEqual

func NotEqual(t *testing.T, x, y any, msgAndArgs ...any) bool

func Panic

func Panic(t *testing.T, f func(), msgAndArgs ...any) (b bool)

func Replayable

func Replayable(enabled bool, f func(r *Replayer))

func RequireElementsMatch

func RequireElementsMatch(t *testing.T, x, y any, msgAndArgs ...any) bool

func RequireEmpty

func RequireEmpty(t *testing.T, x any, msgAndArgs ...any) bool

func RequireEqual

func RequireEqual(t *testing.T, x, y any, msgAndArgs ...any) bool

func RequireFalse

func RequireFalse(t *testing.T, b bool, msgAndArgs ...any) bool

func RequireNoError

func RequireNoError(t *testing.T, err error, msgAndArgs ...any) bool

func RequireNoPanic

func RequireNoPanic(t *testing.T, f func(), msgAndArgs ...any) (b bool)

func RequireNotEqual

func RequireNotEqual(t *testing.T, x, y any, msgAndArgs ...any) bool

func RequirePanic

func RequirePanic(t *testing.T, f func(), msgAndArgs ...any) (b bool)

func RequireTrue

func RequireTrue(t *testing.T, b bool, msgAndArgs ...any) bool

func True

func True(t *testing.T, b bool, msgAndArgs ...any) bool

Types

type Marker

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

func (*Marker) IsTarget

func (m *Marker) IsTarget() bool

type Replayer

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

func (*Replayer) Mark

func (r *Replayer) Mark(args ...any) *Marker

func (*Replayer) ReplayTo

func (r *Replayer) ReplayTo(m *Marker)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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