assert

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq[C comparable](t *testing.T, context string, expected, actual C)

func FatalErr

func FatalErr(t *testing.T, context string, err error)

func FatalErrAs

func FatalErrAs(t *testing.T, context string, err error, target any)

func FatalErrIs

func FatalErrIs(t *testing.T, context string, err, target error)

func FatalTrue

func FatalTrue(t *testing.T, context string, condition bool)

func SlicesEq

func SlicesEq[S ~[]E, E comparable](t *testing.T, context string, expected, actual S)

func Snapshot

func Snapshot(t *testing.T, path string, actual []byte)

func SnapshotJson

func SnapshotJson(t *testing.T, actual any)

func SnapshotText

func SnapshotText(t *testing.T, actual string)

func SnapshotXml

func SnapshotXml(t *testing.T, actual any)

func True

func True(t *testing.T, context string, condition bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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