e2e

package
v1.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 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