Documentation
¶
Index ¶
- func AllocsPerRun(runs int, f func()) (avg float64)
- func CoverMode() string
- func Coverage() float64
- func Init()
- func Main(matchString func(pat, str string) (bool, error), ...)
- func RegisterCover(c stdtesting.Cover)
- func RunBenchmarks(matchString func(pat, str string) (bool, error), ...)
- func RunExamples(matchString func(pat, str string) (bool, error), ...) (ok bool)
- func RunTests(matchString func(pat, str string) (bool, error), ...) (ok bool)
- func Short() bool
- func Testing() bool
- func Verbose() bool
- type B
- type BenchmarkResult
- type Cover
- type CoverBlock
- type F
- type InternalBenchmark
- type InternalExample
- type InternalFuzzTarget
- type InternalTest
- type M
- type PB
- type T
- type TB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocsPerRun ¶
func Main ¶
func Main(matchString func(pat, str string) (bool, error), tests []stdtesting.InternalTest, benchmarks []stdtesting.InternalBenchmark, examples []stdtesting.InternalExample)
func RegisterCover ¶
func RegisterCover(c stdtesting.Cover)
func RunBenchmarks ¶
func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []stdtesting.InternalBenchmark)
func RunExamples ¶
func RunExamples(matchString func(pat, str string) (bool, error), examples []stdtesting.InternalExample) (ok bool)
func RunTests ¶
func RunTests(matchString func(pat, str string) (bool, error), tests []stdtesting.InternalTest) (ok bool)
Types ¶
type B ¶
type B = stdtesting.B
type BenchmarkResult ¶
type BenchmarkResult = stdtesting.BenchmarkResult
func Benchmark ¶
func Benchmark(f func(b *B)) BenchmarkResult
type Cover ¶
type Cover = stdtesting.Cover
type CoverBlock ¶
type CoverBlock = stdtesting.CoverBlock
type F ¶
type F = stdtesting.F
type InternalBenchmark ¶
type InternalBenchmark = stdtesting.InternalBenchmark
type InternalExample ¶
type InternalExample = stdtesting.InternalExample
type InternalFuzzTarget ¶
type InternalFuzzTarget = stdtesting.InternalFuzzTarget
type InternalTest ¶
type InternalTest = stdtesting.InternalTest
type M ¶
type M = stdtesting.M
type PB ¶
type PB = stdtesting.PB
type T ¶
type T = stdtesting.T
type TB ¶
type TB = stdtesting.TB
Click to show internal directories.
Click to hide internal directories.