testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T, errs ...error)

func CheckEmptyStringInSliceError

func CheckEmptyStringInSliceError(input []string) error

func CheckNilPointerError

func CheckNilPointerError[T any, K comparable, PtrT *T | []T | map[K]T](ptr PtrT) error

Accepts pointers to any type, and all slices and maps.

func CheckNotEqualError

func CheckNotEqualError[T comparable](actual T, expected T) error

func CheckZeroLengthError

func CheckZeroLengthError[T any, K comparable, LenT []T | string | map[K]T](t LenT) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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