Documentation
¶
Overview ¶
Package wallclock reports time.Sleep and time.After in test files outside a testing/synctest.Test bubble.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "wallclock", Doc: "report time.Sleep and time.After in tests outside a testing/synctest bubble", FactTypes: []analysis.Fact{new(waits)}, Run: run, }
Analyzer reports a wall-clock wait in a _test.go file unless it sits inside the function literal passed to synctest.Test. A comment "//lint:allow wallclock REASON" on the line exempts the call.
Functions ¶
This section is empty.
Types ¶
This section is empty.