mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-11 08:28:10 -05:00
22 lines
445 B
Go
22 lines
445 B
Go
package logcapitalization_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"golang.org/x/tools/go/analysis/analysistest"
|
|
|
|
"github.com/OffchainLabs/prysm/v7/build/bazel"
|
|
"github.com/OffchainLabs/prysm/v7/tools/analyzers/logcapitalization"
|
|
)
|
|
|
|
func init() {
|
|
if bazel.BuiltWithBazel() {
|
|
bazel.SetGoEnv()
|
|
}
|
|
}
|
|
|
|
func TestAnalyzer(t *testing.T) {
|
|
testdata := analysistest.TestData()
|
|
analysistest.RunWithSuggestedFixes(t, testdata, logcapitalization.Analyzer, "a")
|
|
}
|