htesting

package
v0.63.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BailOut

func BailOut(after time.Duration)

BailOut panics with a stack trace after the given duration. Useful for hanging tests.

func CreateTempDir

func CreateTempDir(fs afero.Fs, prefix string) (string, func(), error)

CreateTempDir creates a temp dir in the given filesystem and returns the dirnam and a func that removes it when done.

func NewTestdataBuilder

func NewTestdataBuilder(fs afero.Fs, workingDir string, t testing.TB) *testdataBuilder

func RandIntn

func RandIntn(n int) int

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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