assert

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[V comparable](t Tester, got, expected V)

func ErrorIs

func ErrorIs(t Tester, got, expected error)

func False

func False(t Tester, got bool)

func NoError

func NoError(t Tester, err error)

func NotEqual

func NotEqual[V comparable](t Tester, got, expectednot V)

func NotNil

func NotNil[V comparable](t Tester, got V)

func True

func True(t Tester, got bool)

func Zero

func Zero[V comparable](t Tester, got V)

Types

type Tester

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

Jump to

Keyboard shortcuts

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