e2e

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoBuild

func GoBuild(pkgPath, tmpPrefix string) string

func NewBinary

func NewBinary(t *testing.T, binaryPath, workingDir string) *binary

NewBinary prepares a temporary directory containing the files from the given fixture and returns an instance of type binary that can run the generated binary in that directory.

If the temporary directory cannot be created, a fixture of the given name cannot be found, or if an error occurs while _copying_ the fixture files, this function will panic. Tests should be written to assume that this function always succeeds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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