assert

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 3 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 NotEqual added in v0.11.0

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