testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesFromHex

func BytesFromHex(t testing.TB, s string) []byte

func ExpectFileContent added in v0.2.2

func ExpectFileContent(t *testing.T, file string, want []byte)

func ExpectFileContentHex added in v0.2.2

func ExpectFileContentHex(t *testing.T, file string, want string)

func ReadFile

func ReadFile(t testing.TB, s string) []byte

func RunCmd added in v0.5.0

func RunCmd(cmd *cmd.Command, args ...string) error

func SetupIn added in v0.4.0

func SetupIn(t *testing.T, in string, input []byte)

func SetupInOut added in v0.4.0

func SetupInOut(t *testing.T, in, out string, input []byte)

func SetupOut added in v0.4.0

func SetupOut(t *testing.T, out string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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