codspeed

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocsPerRun

func AllocsPerRun(runs int, f func()) (avg float64)

func CoverMode

func CoverMode() string

func Coverage

func Coverage() float64

func Init

func Init()

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)

func Short

func Short() bool

func Testing

func Testing() bool

func Verbose

func Verbose() 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

Directories

Path Synopsis
https://pkg.go.dev/testing/slogtest
https://pkg.go.dev/testing/slogtest

Jump to

Keyboard shortcuts

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