testing package
Canonical package docs for tests, benchmarks, fuzzing, subtests, and helper APIs.
Canonical package docs for tests, benchmarks, fuzzing, subtests, and helper APIs.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/testing
What it covers
- tests and benchmarks
- subtests and helpers
- fuzzing and testing package APIs
Why authoritative
Official package documentation for Go’s standard testing API.
Use when
- how does the Go testing package work
- what helper does Go testing provide here
- how should I write this benchmark or subtest
Keywords
- testing package, benchmarks, subtests, fuzzing, helpers