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

21 lines
380 B
Go
Raw Normal View History

package ineffassign
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)
}