assert

package
v0.0.0-...-81f4bad Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a any, b any, msg string, args ...any)

Equal panics if a and b are not "deeply equal"

func False

func False(stmt bool, msg string, args ...any)

Panics if statement does not resolve to false

func GreaterThan

func GreaterThan[T cmp.Ordered](a T, b T, msg string, args ...any)

Panic if a is not greater than b

func LessThan

func LessThan[T cmp.Ordered](a T, b T, msg string, args ...any)

Panic if a is not less than b

func Nil

func Nil(obj any, msg string, args ...any)

Panic if obj is not nil

func NotNil

func NotNil(obj any, msg string, args ...any)

Panic if obj is nil

func True

func True(stmt bool, msg string, args ...any)

Panics if statement does not resolve to true

Types

This section is empty.

Jump to

Keyboard shortcuts

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