test

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementsMatch added in v1.6.0

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

func Empty added in v1.6.0

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

func Equal added in v1.6.0

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

func Fail added in v1.6.0

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

func FailNow added in v1.6.0

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

func False added in v1.6.0

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

func NoError added in v1.6.0

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

func NoPanic added in v1.6.0

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

func NotEqual added in v1.6.0

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

func Panic added in v1.6.0

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

func Replayable

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

func RequireElementsMatch added in v1.6.0

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

func RequireEmpty added in v1.6.0

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

func RequireEqual added in v1.6.0

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

func RequireFalse added in v1.6.0

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

func RequireNoError added in v1.6.0

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

func RequireNoPanic added in v1.6.0

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

func RequireNotEqual added in v1.6.0

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

func RequirePanic added in v1.6.0

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

func RequireTrue added in v1.6.0

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

func True added in v1.6.0

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