require

package
v0.0.0-...-b8d4c9e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty(t TestingT, object any, msgAndArgs ...any)

func Equal

func Equal[T any](t TestingT, expected, actual T, msgAndArgs ...any)

func ErrorContains

func ErrorContains(t TestingT, err error, contains string, msgAndArgs ...any)

func ErrorIs

func ErrorIs(t TestingT, err, target error, msgAndArgs ...any)

func False

func False(t TestingT, condition bool, msgAndArgs ...any)

func Greater

func Greater[T constraints.Ordered](t TestingT, a, b T, msgAndArgs ...any)

func GreaterOrEqual

func GreaterOrEqual[T constraints.Ordered](t TestingT, a, b T, msgAndArgs ...any)

func Len

func Len(t TestingT, obj any, length int, msgAndArgs ...any)

func Nil

func Nil(t TestingT, object any, msgAndArgs ...any)

func NoError

func NoError(t TestingT, err error, msgAndArgs ...any)

func NotEmpty

func NotEmpty(t TestingT, object any, msgAndArgs ...any)

func NotEqual

func NotEqual[T any](t TestingT, expected, actual T, msgAndArgs ...any)

func NotNil

func NotNil(t TestingT, object any, msgAndArgs ...any)

func NotPanics

func NotPanics(t TestingT, f func(), msgAndArgs ...any)

func NotZero

func NotZero(t TestingT, value any, msgAndArgs ...any)

func Panics

func Panics(t TestingT, f func(), msgAndArgs ...any)

func Regexp

func Regexp(t TestingT, pattern, text string, msgAndArgs ...any)

func True

func True(t TestingT, condition bool, msgAndArgs ...any)

func Zero

func Zero(t TestingT, value any, msgAndArgs ...any)

Types

type TestingT

type TestingT interface {
	assert.TestingT
	FailNow()
}

Jump to

Keyboard shortcuts

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