require

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t TestingT, s, contains string, msgs ...any)

func Empty

func Empty(t TestingT, a any, msgs ...any)

func Equal

func Equal(t TestingT, w, a any, msgs ...any)

func EqualError

func EqualError(t TestingT, err error, want string, msgs ...any)

func Error

func Error(t TestingT, err error, msgs ...any)

func Fail

func Fail(t TestingT, format string, args ...any)

func False

func False(t TestingT, value bool, msgs ...any)

func Len

func Len(t TestingT, a any, length int, msgs ...any)

func Nil

func Nil(t TestingT, a any, msgs ...any)

func NoError

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

func NotContains

func NotContains(t TestingT, s, contains string, msgs ...any)

func NotEqual

func NotEqual(t TestingT, w, a any, msgs ...any)

func NotNil

func NotNil(t TestingT, a any, msgs ...any)

func NotPanics

func NotPanics(t TestingT, f func())

func Panics

func Panics(t TestingT, f func())

func PanicsWithValue

func PanicsWithValue(t TestingT, val any, f func())

func Regexp

func Regexp(t TestingT, p string, a string)

func True

func True(t TestingT, value bool, msgs ...any)

func Zero

func Zero(t TestingT, a any, msgs ...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