bazel

package
v0.0.0-...-9b02bcc Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltWithBazel

func BuiltWithBazel() bool

BuiltWithBazel returns true iff this library was built with Bazel.

func ScratchDirectory

func ScratchDirectory(t *testing.T) string

ScratchDirectory returns the path of the scratch directory in the bazel sandbox.

func WorkspacePath

func WorkspacePath(t *testing.T) string

WorkspacePath returns the path of the bazel workspace.

func WritableSandboxPathFor

func WritableSandboxPathFor(t *testing.T, pkg, path string) (writable string, implant func())

WritableSandboxPathFor returns a writable path for a given path in the source tree. It also returns a callback to copy over the contents of the writable path back into the source tree (`--sandbox_writable_path` is expected to have been declared over it).

Types

This section is empty.

Jump to

Keyboard shortcuts

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