Documentation
¶
Overview ¶
Package tests holds the integration / blackbox test harness for prof.
Test fixtures (committed pprof binaries under assets/fixtures/) are regenerated by `go generate ./tests/...`, which delegates to the `//go:build ignore` regeneration tool fixtures_regen.go.
Edge-case and invariant tests live in edgecases_*_test.go files (names prefixed TestEdge). They run with the rest of the package under go test ./tests or go test ./.... To run only edge tests locally: go test ./tests -run '^TestEdge' -count=1
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BenchmarkContent string
BenchmarkContent is embedded benchmark test source used when creating synthetic modules.
Functions ¶
Types ¶
type FieldsCheck ¶
type FieldsCheck struct {
// contains filtered or unexported fields
}
FieldsCheck records expected min/max appearances for an output file in a test run.
func (*FieldsCheck) IsWithinRange ¶
func (fc *FieldsCheck) IsWithinRange() bool
IsWithinRange reports whether currentAppearances is between minimum and maximum inclusive.