test

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, got, want any, msgAndArgs ...any)

AssertEqual fails the test if got != want (using reflect.DeepEqual).

func AssertError

func AssertError(t *testing.T, err error, msgAndArgs ...any)

AssertError fails the test if err is nil.

func AssertFalse

func AssertFalse(t *testing.T, condition bool, msgAndArgs ...any)

AssertFalse fails the test if condition is true.

func AssertNoError

func AssertNoError(t *testing.T, err error, msgAndArgs ...any)

AssertNoError fails the test if err is non-nil.

func AssertNotEmpty

func AssertNotEmpty(t *testing.T, val any, msgAndArgs ...any)

AssertNotEmpty fails the test if val is nil or the zero value of its type.

func AssertTrue

func AssertTrue(t *testing.T, condition bool, msgAndArgs ...any)

AssertTrue fails the test if condition is false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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