testutil

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any](x T, err error) func(t *testing.T) T

func MustMkdirAll added in v0.31.0

func MustMkdirAll(t *testing.T, path ...string)

func MustReadFile added in v0.31.0

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

func MustRemove added in v0.31.0

func MustRemove(t *testing.T, path string)

func MustWriteFile added in v0.31.0

func MustWriteFile(t *testing.T, path string, contents []byte)

func TempDirectoryOf added in v0.31.0

func TempDirectoryOf(t *testing.T, files map[string]string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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