Documentation ¶
Overview ¶
Package test provides testing utilities.
Index ¶
- func Assembles(t *testing.T, asm []byte)
- func Exec(t *testing.T, name string, arg ...string)
- func ExecCommand(t *testing.T, cmd *exec.Cmd)
- func GoTool() string
- func Logger(tb testing.TB) *log.Logger
- func RequiresNetwork(t *testing.T)
- func TempDir(t *testing.T) (string, func())
- func Writer(tb testing.TB) io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec executes the named program with the given arguments, logging the command and output and failing the test on error.
func ExecCommand ¶
ExecCommand executes the command, logging the command and output and failing the test on error.
func RequiresNetwork ¶
RequiresNetwork declares that a test requires network access. The test is skipped if network access isn't enabled with the -net flag.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.