assert

package
v0.1.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[S ~[]E, E comparable](t common.T, s S, v E)

func ContainsString

func ContainsString(t common.T, s, v string)

func Empty

func Empty(t common.T, object any)

func Equal

func Equal[T any](t common.T, want, got T, opts ...cmp.Option)

func Equalf

func Equalf(t common.T, expected any, actual any, msg string, args ...any)

func Error

func Error(t common.T, e error)

func False

func False(t common.T, x bool)

func GreaterThan

func GreaterThan[T types.Ordered](t common.T, big, small T)

func GreaterThanOrEqual

func GreaterThanOrEqual[T types.Ordered](t common.T, big, small T)

func In

func In[T any](t common.T, element T, slice []T, opts ...cmp.Option)

func Len

func Len(t common.T, object any, length int)

func LessThan

func LessThan[T types.Ordered](t common.T, small, big T)

func LessThanOrEqual

func LessThanOrEqual[T types.Ordered](t common.T, small, big T)

func Nil

func Nil(t common.T, v any)

func NoError

func NoError(t common.T, e error)

func NotContains

func NotContains[S ~[]E, E comparable](t common.T, s S, v E)

func NotContainsString

func NotContainsString(t common.T, s, v string)

func NotEmpty

func NotEmpty(t common.T, object any)

func NotEqual

func NotEqual[T any](t common.T, want, got T, opts ...cmp.Option)

func NotIn

func NotIn[T any](t common.T, element T, slice []T, opts ...cmp.Option)

func NotNil

func NotNil(t common.T, v any)

func NotPanics

func NotPanics(t common.T, expected any)

func NotZero

func NotZero(t common.T, v any)

func Panics

func Panics(t common.T, f func())

func True

func True(t common.T, x bool)

func UnsignedInteger

func UnsignedInteger[T types.Unsigned](t common.T, want, got T, opts ...cmp.Option)

func Zero

func Zero(t common.T, v any)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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