assert

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msgAndArgs ...any)

func Equals

func Equals(tb testing.TB, expected, actual any, msgAndArgs ...any)

func Error

func Error(tb testing.TB, err error, msgAndArgs ...any)

func ErrorType

func ErrorType(tb testing.TB, err error, target error, msgAndArgs ...any)

func Fail

func Fail(tb testing.TB, err error)

func JsonEqual

func JsonEqual(tb testing.TB, expected, actual []byte, msg ...any)

JsonEqual accepts two JSON-containing byte arrays and compares their content equality (rather than their byte equality). This allows ordering to be ignored

func Nil added in v0.2.0

func Nil(tb testing.TB, v any, msgAndArgs ...any)

func NotEquals

func NotEquals(tb testing.TB, expected, actual any, msgAndArgs ...any)

func NotNil added in v0.2.0

func NotNil(tb testing.TB, v any, msgAndArgs ...any)

func Success

func Success(tb testing.TB, err error)

func True added in v0.2.0

func True(tb testing.TB, condition bool, msgAndArgs ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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