testutils

package
v0.0.0-...-575084b Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapturePanic

func CapturePanic(fn func()) (pv any)

func FileLine

func FileLine(off int) string

Types

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func RecordStderr

func RecordStderr(t *testing.T) *Recorder

func (*Recorder) Done

func (r *Recorder) Done() <-chan struct{}

func (*Recorder) Out

func (r *Recorder) Out() string

func (*Recorder) Stop

func (r *Recorder) Stop() <-chan struct{}

Jump to

Keyboard shortcuts

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