package testdeps

Import Path
	testing/internal/testdeps (on go.dev)

Dependency Relation
	imports 13 packages, and imported by 0 packages

Involved Source Files 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.
Package-Level Type Names (only one)
/* sort by: | */
TestDeps is an implementation of the testing.testDeps interface, suitable for passing to [testing.MainStart]. ( TestDeps) CheckCorpus(vals []any, types []reflect.Type) error ( TestDeps) CoordinateFuzzing(timeout time.Duration, limit int64, minimizeTimeout time.Duration, minimizeLimit int64, parallel int, seed []fuzz.CorpusEntry, types []reflect.Type, corpusDir, cacheDir string) (err error) ( TestDeps) ImportPath() string ( TestDeps) InitRuntimeCoverage() (mode string, tearDown func(string, string) (string, error), snapcov func() float64) ( TestDeps) MatchString(pat, str string) (result bool, err error) ( TestDeps) ReadCorpus(dir string, types []reflect.Type) ([]fuzz.CorpusEntry, error) ( TestDeps) ResetCoverage() ( TestDeps) RunFuzzWorker(fn func(fuzz.CorpusEntry) error) error SetPanicOnExit0 tells the os package whether to panic on os.Exit(0). ( TestDeps) SnapshotCoverage() ( TestDeps) StartCPUProfile(w io.Writer) error ( TestDeps) StartTestLog(w io.Writer) ( TestDeps) StopCPUProfile() ( TestDeps) StopTestLog() error ( TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error
Package-Level Variables (total 8)
Cover indicates whether coverage is enabled.
These variables below are set at runtime (via code in testmain) to point to the equivalent functions in package internal/coverage/cfile; doing things this way allows us to have tests import internal/coverage/cfile only when -cover is in effect (as opposed to importing for all tests).
These variables below are set at runtime (via code in testmain) to point to the equivalent functions in package internal/coverage/cfile; doing things this way allows us to have tests import internal/coverage/cfile only when -cover is in effect (as opposed to importing for all tests).
These variables below are set at runtime (via code in testmain) to point to the equivalent functions in package internal/coverage/cfile; doing things this way allows us to have tests import internal/coverage/cfile only when -cover is in effect (as opposed to importing for all tests).
ImportPath is the import path of the testing binary, set by the generated main function.