assert

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](t *testing.T, expected, target T)

func Error

func Error(t *testing.T, err error)

Error was added to avoid to use external dependencies for mocking

func ErrorIs

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

ErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.

func ErrorIsNot

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

func False

func False(t *testing.T, val bool)

False was added to avoid to use external dependencies for mocking

func NoError

func NoError(t *testing.T, err error)

NoError was added to avoid to use external dependencies for mocking

func True

func True(t *testing.T, val bool)

True was added to avoid to use external dependencies for mocking

Types

This section is empty.

Jump to

Keyboard shortcuts

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