assert

package
v0.0.0-...-a0adf69 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](t TInterface, actual, expected T) bool

func EqualJSON

func EqualJSON[K comparable, V comparable](t TInterface, actual, expected map[K]V) bool

func EqualSlice

func EqualSlice[T comparable](t TInterface, actual, expected []T) bool

func Error

func Error(t TInterface, err error, errMsg ...any) bool

func ErrorIs

func ErrorIs(t TInterface, actual, expected error) bool

func Len

func Len[T comparable](t TInterface, expected []T, length int) bool

func NoError

func NoError(t TInterface, err error, errMsg ...any) bool

Types

type TInterface

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

Jump to

Keyboard shortcuts

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