_assert

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Default = 1
View Source
const Float = 2
View Source
const List = 4
View Source
const Time = 3

Variables

This section is empty.

Functions

func Contains added in v1.2.0

func Contains(t *testing.T, str string, substr string)

func Empty added in v1.2.0

func Empty(t *testing.T, value any)

func Equal

func Equal(t *testing.T, expect any, get any)

func EqualByFloat

func EqualByFloat(t *testing.T, expect any, get any)

func EqualByList

func EqualByList(t *testing.T, expect any, get any)

func EqualByTime

func EqualByTime(t *testing.T, expect any, get any)

func Error added in v1.2.0

func Error(t *testing.T, err error)

func False added in v1.2.0

func False(t *testing.T, value bool)

func Greater added in v1.2.0

func Greater(t *testing.T, value any, expected any)

func GreaterOrEqual added in v1.2.0

func GreaterOrEqual(t *testing.T, value any, expected any)

func In added in v1.2.0

func In(t *testing.T, value any, collection any)

func Len added in v1.2.0

func Len(t *testing.T, value any, length int)

func Less added in v1.2.0

func Less(t *testing.T, value any, expected any)

func LessOrEqual added in v1.2.0

func LessOrEqual(t *testing.T, value any, expected any)

func Nil added in v1.2.0

func Nil(t *testing.T, value any)

func NoError added in v1.2.0

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

func NotContains added in v1.2.0

func NotContains(t *testing.T, str string, substr string)

func NotEmpty added in v1.2.0

func NotEmpty(t *testing.T, value any)

func NotEqual added in v1.2.0

func NotEqual(t *testing.T, notExpect any, get any)

func NotIn added in v1.2.0

func NotIn(t *testing.T, value any, collection any)

func NotNil added in v1.2.0

func NotNil(t *testing.T, value any)

func NotPanics added in v1.2.0

func NotPanics(t *testing.T, fn func())

func Panics added in v1.2.0

func Panics(t *testing.T, fn func())

func Regexp added in v1.2.0

func Regexp(t *testing.T, str string, pattern string)

func True added in v1.2.0

func True(t *testing.T, value bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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