-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Description
The documentation of testing.Benchmark says that
If f depends on testing flags, then [Init] must be used to register
those flags before calling Benchmark and before calling [flag.Parse].
but doesn't specify what might depend on the flags.
I ran into this when I returned inside a for b.Loop() loop, which tried to log an error, but instead panicked because logging accesses the fullPath flag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.