testing: document that TestMain always runs before any benchmarks #45764
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The docs for
TestMain
say:https://golang.org/pkg/testing/#hdr-Main
But what if one needs to do extra setup before benchmarking? It appears that
TestMain
would also always run before benchmarks, but neitherTestMain
doc norM.Run
doc say anything about benchmarks.The text was updated successfully, but these errors were encountered: