Go: testing/internal/testdeps Index | Files

package testdeps

import "testing/internal/testdeps"

Package testdeps provides access to dependencies needed by test execution.

This package is imported by the generated main package, which passes TestDeps into testing.Main. This allows tests to use packages at run time without making those packages direct dependencies of package testing. Direct dependencies of package testing are harder to write tests for.

Index

Package Files

deps.go

Variables

var ImportPath string

ImportPath is the import path of the testing binary, set by the generated main function.

type TestDeps Uses

type TestDeps struct{}

TestDeps is an implementation of the testing.testDeps interface, suitable for passing to testing.MainStart.

func (TestDeps) ImportPath Uses

func (TestDeps) ImportPath() string

func (TestDeps) MatchString Uses

func (TestDeps) MatchString(pat, str string) (result bool, err error)

func (TestDeps) StartCPUProfile Uses

func (TestDeps) StartCPUProfile(w io.Writer) error

func (TestDeps) StartTestLog Uses

func (TestDeps) StartTestLog(w io.Writer)

func (TestDeps) StopCPUProfile Uses

func (TestDeps) StopCPUProfile()

func (TestDeps) StopTestLog Uses

func (TestDeps) StopTestLog() error

func (TestDeps) WriteProfileTo Uses

func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error

Package testdeps imports 7 packages (graph). Updated 2018-12-25. Refresh now. Tools for package owners.