utils

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectDeepEqual

func ExpectDeepEqual[T any](t *testing.T, got T, want T)

func ExpectEqual

func ExpectEqual[T comparable](t *testing.T, got T, want T)

func ExpectEqualAny

func ExpectEqualAny[T comparable](t *testing.T, got T, wants []T)

func ExpectError

func ExpectError(t *testing.T, expected error, err error)

func ExpectError2

func ExpectError2(t *testing.T, input any, expected error, err error)

func ExpectErrorT

func ExpectErrorT[T error](t *testing.T, err error)

func ExpectFalse

func ExpectFalse(t *testing.T, got bool)

func ExpectHasError

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

func ExpectNoError

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

func ExpectTrue

func ExpectTrue(t *testing.T, got bool)

func ExpectType

func ExpectType[T any](t *testing.T, got any) (_ T)

func Must

func Must[Result any](r Result, err error) Result

Types

This section is empty.

Jump to

Keyboard shortcuts

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