You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
testing: document that TestMain always runs before any benchmarks #45764
But what if one needs to do extra setup before benchmarking? It appears that TestMain would also always run before benchmarks, but neither TestMain doc nor M.Run doc say anything about benchmarks.
changed the title [-]doc: document that TestMain always runs before any benchmarks[/-][+]testing: document that TestMain always runs before any benchmarks[/+]on Apr 26, 2021
Activity
[-]doc: document that TestMain always runs before any benchmarks[/-][+]testing: document that TestMain always runs before any benchmarks[/+]cherrymui commentedon Apr 26, 2021
cc @mpvl @bcmills
document that TestMain can be used with benchmarks, fixes golang#45764
document that TestMain can be used with benchmarks, fixes golang#45764
testing: document that TestMain can be used with benchmarks
gopherbot commentedon Apr 27, 2021
Change https://golang.org/cl/314349 mentions this issue:
testing: document that TestMain can be used with benchmarks