testing

package
v0.0.0-...-fab57c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package testing provides a mockable wrapper for testing.

Index

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) AllocsPerRun(runs int, f func()) (avg float64)

func (*Impl) Benchmark

func (*Impl) Benchmark(f func(b *testing.B)) testing.BenchmarkResult

func (*Impl) CoverMode

func (*Impl) CoverMode() string

func (*Impl) Coverage

func (*Impl) Coverage() float64

func (*Impl) Init

func (*Impl) Init()

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) RegisterCover(c testing.Cover)

func (*Impl) RunBenchmarks

func (*Impl) RunBenchmarks(matchString func(pat string, str string) (bool, error), benchmarks []testing.InternalBenchmark)

func (*Impl) RunExamples

func (*Impl) RunExamples(matchString func(pat string, str string) (bool, error), examples []testing.InternalExample) (ok bool)

func (*Impl) RunTests

func (*Impl) RunTests(matchString func(pat string, str string) (bool, error), tests []testing.InternalTest) (ok bool)

func (*Impl) Short

func (*Impl) Short() bool

func (*Impl) Verbose

func (*Impl) Verbose() bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL