require

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t *testing.T, values any, value any)

func Equal

func Equal(t *testing.T, expected, actual any)

func EqualElements

func EqualElements[T comparable](t *testing.T, expected, actual []T)

func Error

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

func False added in v0.1.0

func False(t *testing.T, check bool)

func Gzip added in v0.1.0

func Gzip(contents []byte) []byte

func NoError

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

func NotEmpty added in v0.1.0

func NotEmpty(t *testing.T, value string)

func Server added in v0.1.0

func Server(t *testing.T, routes map[string]any, urlMapper ...func(string) string) string

func SetAndRestore added in v0.1.0

func SetAndRestore[T any](t *testing.T, ptrToVar *T, newValue T)

func Tar added in v0.1.0

func Tar(files map[string][]byte) []byte

func Test added in v0.1.0

func Test(t *testing.T)

func True added in v0.1.0

func True(t *testing.T, check bool)

func Zip added in v0.1.0

func Zip(files map[string][]byte) []byte

Types

type ValidationError added in v0.1.0

type ValidationError func(t *testing.T, err error)

func (ValidationError) Validate added in v0.1.0

func (v ValidationError) Validate(t *testing.T, err error)

Jump to

Keyboard shortcuts

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