Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2022 Changes in this version + func AllocsPerRun(runs int, f func()) (avg float64) + func Coverage() float64 + func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, ...) + func RegisterCover(c Cover) + func RunBenchmarks(matchString func(pat, str string) (bool, error), ...) + func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) + func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) + func Short() bool + func Verbose() bool + type B struct + N int + func (b *B) ReportAllocs() + func (b *B) ResetTimer() + func (b *B) RunParallel(body func(*PB)) + func (b *B) SetBytes(n int64) + func (b *B) SetParallelism(p int) + func (b *B) StartTimer() + func (b *B) StopTimer() + func (c *B) Error(args ...interface{}) + func (c *B) Errorf(format string, args ...interface{}) + func (c *B) Fail() + func (c *B) FailNow() + func (c *B) Failed() bool + func (c *B) Fatal(args ...interface{}) + func (c *B) Fatalf(format string, args ...interface{}) + func (c *B) Log(args ...interface{}) + func (c *B) Logf(format string, args ...interface{}) + func (c *B) Skip(args ...interface{}) + func (c *B) SkipNow() + func (c *B) Skipf(format string, args ...interface{}) + func (c *B) Skipped() bool + type BenchmarkResult struct + Bytes int64 + MemAllocs uint64 + MemBytes uint64 + N int + T time.Duration + func Benchmark(f func(b *B)) BenchmarkResult + func (r BenchmarkResult) AllocedBytesPerOp() int64 + func (r BenchmarkResult) AllocsPerOp() int64 + func (r BenchmarkResult) MemString() string + func (r BenchmarkResult) NsPerOp() int64 + func (r BenchmarkResult) String() string + type Cover struct + Blocks map[string][]CoverBlock + Counters map[string][]uint32 + CoveredPackages string + Mode string + type CoverBlock struct + Col0 uint16 + Col1 uint16 + Line0 uint32 + Line1 uint32 + Stmts uint16 + type InternalBenchmark struct + F func(b *B) + Name string + type InternalExample struct + F func() + Name string + Output string + type InternalTest struct + F func(*T) + Name string + type M struct + func MainStart(matchString func(pat, str string) (bool, error), tests []InternalTest, ...) *M + func (m *M) Run() int + type PB struct + func (pb *PB) Next() bool + type T struct + func (c *T) Error(args ...interface{}) + func (c *T) Errorf(format string, args ...interface{}) + func (c *T) Fail() + func (c *T) FailNow() + func (c *T) Failed() bool + func (c *T) Fatal(args ...interface{}) + func (c *T) Fatalf(format string, args ...interface{}) + func (c *T) Log(args ...interface{}) + func (c *T) Logf(format string, args ...interface{}) + func (c *T) Skip(args ...interface{}) + func (c *T) SkipNow() + func (c *T) Skipf(format string, args ...interface{}) + func (c *T) Skipped() bool + func (t *T) Parallel() + type TB interface + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fail func() + FailNow func() + Failed func() bool + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Log func(args ...interface{}) + Logf func(format string, args ...interface{}) + Skip func(args ...interface{}) + SkipNow func() + Skipf func(format string, args ...interface{}) + Skipped func() bool