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

Types

type TestDeps

type TestDeps struct{}

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

func (TestDeps) MatchString

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

func (TestDeps) StartCPUProfile

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

func (TestDeps) StopCPUProfile

func (TestDeps) StopCPUProfile()

func (TestDeps) WriteHeapProfile

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

func (TestDeps) WriteProfileTo

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

Source Files

deps.go

Version
v1.8.6
Published
Jan 23, 2018
Platform
js/wasm
Imports
3 packages
Last checked
22 seconds ago

Tools for package owners.