assert

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T any](t *testing.T, a, b T)

Equal verifies equality of two objects.

func ErrorContains

func ErrorContains(t *testing.T, err error, str string)

ErrorContains checks whether the given error contains the specified string.

func ErrorIs

func ErrorIs(t *testing.T, err error, target error)

ErrorIs checks whether any error in err's tree matches target.

func IsNil

func IsNil(t *testing.T, obj any)

IsNil verifies that the object is nil.

func NotEqual

func NotEqual[T any](t *testing.T, a T, b T)

NotEqual verifies objects are not equal.

func Panics

func Panics(t *testing.T, f func())

Panics checks whether the given function panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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