assert

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementsMatch

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

ElementsMatch checks whether the given slices contain the same elements.

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 Panic

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

Panic 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