aboutsummaryrefslogtreecommitdiff
path: root/linters/nosleep/nosleep_test.go
blob: e6b38a0f6eded6c9f8e2f1ed3c231c7195598498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package nosleep

import (
	"testing"

	"golang.org/x/tools/go/analysis/analysistest"
)

// TestNosleep ensures that the nosleep analyzer catches use of time.Sleep in testing code.
func TestNosleep(t *testing.T) {
	analysistest.Run(t, analysistest.TestData(), Analyzer)
}