Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoBuild ¶
func GoBuild(t *testing.T, dir, tags string, envVarVals ...string) (binaryPath string, cleanup func())
GoBuild runs "go build" on dir using the additional environment variables in envVarVals, which should be an alternating list of variables and values. It returns the path to the resulting binary, and a function to call when finished with the binary.
func LoadPackages ¶
LoadPackages loads packages for patterns. Returns error if the loading failed or some of the specified packages have issues. In the latter case, the error message will contain information only for the first observed package with issues.
func NeedsGoEnv ¶
NeedsGoEnv skips t if the current system can't get the environment with “go env” in a subprocess.
func VerifyImports ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.