mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
21 lines
379 B
Go
21 lines
379 B
Go
package ineffassign
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v7/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)
|
|
}
|