...
Package 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.
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
Variables
var ImportPath string
ImportPath is the import path of the testing binary, set by the generated main function.
type TestDeps struct{}
TestDeps is an implementation of the testing.testDeps interface,
suitable for passing to testing.MainStart.
func (TestDeps) ImportPath() string
func (TestDeps) MatchString(pat, str string) (result bool, err error)
func (TestDeps) StartCPUProfile(w io.Writer) error
func (TestDeps) StartTestLog(w io.Writer)
func (TestDeps) StopCPUProfile()
func (TestDeps) StopTestLog() error
func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error