mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
22 lines
447 B
Go
22 lines
447 B
Go
|
package uintcast_test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/prysmaticlabs/prysm/build/bazel"
|
||
|
"github.com/prysmaticlabs/prysm/tools/analyzers/uintcast"
|
||
|
"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, uintcast.Analyzer)
|
||
|
}
|