assert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 6 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) bool

func Empty

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

func Equal

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

func EqualError

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

func Error

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

func Fail

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

func False

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

func Len

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

func Nil

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

func NoError

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

func NotContains

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

func NotEqual

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

func NotNil

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

func NotPanics

func NotPanics(t TestingT, f func()) bool

func Panics

func Panics(t TestingT, f func()) bool

func PanicsWithValue

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

func Regexp

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

func True

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

func Zero

func Zero(t TestingT, a any, msgs ...any) bool

Types

type TestingT

type TestingT interface {
	Errorf(format string, args ...any)
}

Jump to

Keyboard shortcuts

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