mirror of
https://github.com/redis/go-redis.git
synced 2025-08-01 16:06:54 +03:00
test: vet that all Cmders have a SetVal() method
This commit is contained in:
12
internal/customvet/checks/setval/setval_test.go
Normal file
12
internal/customvet/checks/setval/setval_test.go
Normal file
@ -0,0 +1,12 @@
|
||||
package setval_test
|
||||
|
||||
import (
|
||||
"github.com/go-redis/redis/internal/customvet/checks/setval"
|
||||
"golang.org/x/tools/go/analysis/analysistest"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test(t *testing.T) {
|
||||
testdata := analysistest.TestData()
|
||||
analysistest.Run(t, testdata, setval.Analyzer, "a")
|
||||
}
|
Reference in New Issue
Block a user