prysm-pulse/tools/analyzers/shadowpredecl/analyzer_test.go

21 lines
382 B
Go
Raw Normal View History

package shadowpredecl
import (
"testing"
"github.com/prysmaticlabs/prysm/v4/build/bazel"
"golang.org/x/tools/go/analysis/analysistest"
)
func init() {
if bazel.BuiltWithBazel() {
bazel.SetGoEnv()
}
}
func TestAnalyzer(t *testing.T) {
testdata := bazel.TestDataPath(t)
analysistest.TestData = func() string { return testdata }
analysistest.Run(t, testdata, Analyzer)
}