testutil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureMessages

func CaptureMessages() (cleanup func(), checkMessages func(*testing.T, []string))

func Check

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

func CheckLines

func CheckLines(t *testing.T, cmd []string, expLines []string)

func CheckLinesSorted

func CheckLinesSorted(t *testing.T, filter func(string) string, cmd []string, expLines []string)

func ExpStdout

func ExpStdout(t *testing.T, fn func(), expStdout, expStderr string)

func ToLines

func ToLines(out []byte) []string

func WithStdout

func WithStdout(fn func()) ([]byte, []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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