build

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package build provides test helpers for compiling Go binaries. It ensures that build artifacts are isolated and automatically cleaned up after the tests finish.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary(t testing.TB, src, dst string) string

Binary compiles the Go source code located at the src directory and writes the resulting executable to dst within a temporary directory. It returns the absolute path to the compiled binary. The test framework automatically removes the executable and its directory when the test completes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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