package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Packages

Package fstest implements support for testing implementations and users of file systems.
Package iotest implements Readers and Writers useful mainly for testing.
Package quick implements utility functions to help with black box testing.
Package slogtest implements support for testing implementations of log/slog.Handler.

# Functions

AllocsPerRun returns the average number of allocations during calls to f.
Benchmark benchmarks a single function.
Coverage reports the current code coverage as a fraction in the range [0, 1].
CoverMode reports what the test coverage mode is set to.
Init registers testing flags.
Main is an internal function, part of the implementation of the "go test" command.
MainStart is meant for use by tests generated by 'go test'.
RegisterCover records the coverage data accumulators for the tests.
RunBenchmarks is an internal function but exported because it is cross-package; it is part of the implementation of the "go test" command.
RunExamples is an internal function but exported because it is cross-package; it is part of the implementation of the "go test" command.
RunTests is an internal function but exported because it is cross-package; it is part of the implementation of the "go test" command.
Short reports whether the -test.short flag is set.
Testing reports whether the current code is being run in a test.
Verbose reports whether the -test.v flag is set.

# Structs

B is a type passed to [Benchmark] functions to manage benchmark timing and control the number of iterations.
BenchmarkResult contains the results of a benchmark run.
Cover records information about test coverage checking.
CoverBlock records the coverage data for a single basic block.
F is a type passed to fuzz tests.
InternalBenchmark is an internal type but exported because it is cross-package; it is part of the implementation of the "go test" command.
No description provided by the author
InternalFuzzTarget is an internal type but exported because it is cross-package; it is part of the implementation of the "go test" command.
InternalTest is an internal type but exported because it is cross-package; it is part of the implementation of the "go test" command.
M is a type passed to a TestMain function to run the actual tests.
A PB is used by RunParallel for running parallel benchmarks.
T is a type passed to Test functions to manage test state and support formatted test logs.

# Interfaces

TB is the interface common to T, B, and F.