go-internal: github.com/rogpeppe/go-internal/gotooltest Index | Files

package gotooltest

import "github.com/rogpeppe/go-internal/gotooltest"

Package gotooltest implements functionality useful for testing tools that use the go command.

Index

Package Files

setup.go

func Setup Uses

func Setup(p *testscript.Params) error

Setup sets up the given test environment for tests that use the go command. It adds support for go tags to p.Condition and adds the go command to p.Cmds. It also wraps p.Setup to set up the environment variables for running the go command appropriately.

It checks go command can run, but not that it can build or run binaries.

Package gotooltest imports 11 packages (graph) and is imported by 2 packages. Updated 2019-02-07. Refresh now. Tools for package owners.