Documentation ¶
Overview ¶
Package testing provides a mockable wrapper for testing.
Index ¶
- type Impl
- func (*Impl) AllocsPerRun(runs int, f func()) (avg float64)
- func (*Impl) Benchmark(f func(b *testing.B)) testing.BenchmarkResult
- func (*Impl) CoverMode() string
- func (*Impl) Coverage() float64
- func (*Impl) Init()
- func (*Impl) Main(matchString func(pat string, str string) (bool, error), ...)
- func (*Impl) RegisterCover(c testing.Cover)
- func (*Impl) RunBenchmarks(matchString func(pat string, str string) (bool, error), ...)
- func (*Impl) RunExamples(matchString func(pat string, str string) (bool, error), ...) (ok bool)
- func (*Impl) RunTests(matchString func(pat string, str string) (bool, error), ...) (ok bool)
- func (*Impl) Short() bool
- func (*Impl) Verbose() bool
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) AllocsPerRun ¶
func (*Impl) Main ¶
func (*Impl) Main(matchString func(pat string, str string) (bool, error), tests []testing.InternalTest, benchmarks []testing.InternalBenchmark, examples []testing.InternalExample)
func (*Impl) RegisterCover ¶
func (*Impl) RunBenchmarks ¶
func (*Impl) RunExamples ¶
type Interface ¶
type Interface interface { AllocsPerRun(runs int, f func()) (avg float64) Benchmark(f func(b *testing.B)) testing.BenchmarkResult CoverMode() string Coverage() float64 Init() Main(matchString func(pat string, str string) (bool, error), tests []testing.InternalTest, benchmarks []testing.InternalBenchmark, examples []testing.InternalExample) RegisterCover(c testing.Cover) RunBenchmarks(matchString func(pat string, str string) (bool, error), benchmarks []testing.InternalBenchmark) RunExamples(matchString func(pat string, str string) (bool, error), examples []testing.InternalExample) (ok bool) RunTests(matchString func(pat string, str string) (bool, error), tests []testing.InternalTest) (ok bool) Short() bool Verbose() bool }
Directories ¶
Path | Synopsis |
---|---|
Package fstest provides a mockable wrapper for testing/fstest.
|
Package fstest provides a mockable wrapper for testing/fstest. |
Package iotest provides a mockable wrapper for testing/iotest.
|
Package iotest provides a mockable wrapper for testing/iotest. |
Package quick provides a mockable wrapper for testing/quick.
|
Package quick provides a mockable wrapper for testing/quick. |
Click to show internal directories.
Click to hide internal directories.