assert

package
v0.0.0-...-f1cc6df Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t TestingT, object, contain any)

func Empty

func Empty(t TestingT, v any)

func Equal

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

func Error

func Error(t TestingT, err error)

func False

func False(t TestingT, v bool)

func Greater

func Greater[T any](t TestingT, v1, v2 T)

func GreaterOrEqual

func GreaterOrEqual[T any](t TestingT, v1, v2 T)

func Len

func Len(t TestingT, object any, length int)

func Less

func Less[T any](t TestingT, v1, v2 T)

func LessOrEqual

func LessOrEqual[T any](t TestingT, v1, v2 T)

func Nil

func Nil(t TestingT, v any)

func NoError

func NoError(t TestingT, err error)

func NotContains

func NotContains(t TestingT, object, contain any)

func NotEmpty

func NotEmpty(t TestingT, v any)

func NotEqual

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

func NotNil

func NotNil(t TestingT, v any)

func True

func True(t TestingT, v bool)

Types

type Option

type Option func(any) cmp.Option

func IgnoreFields

func IgnoreFields(fields ...string) Option

type TestingT

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳