1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00
revive/test/redefines_builtin_id_test.go
2024-11-11 19:31:18 +01:00

17 lines
355 B
Go

package test
import (
"testing"
"github.com/mgechev/revive/rule"
)
// Tests RedefinesBuiltinID rule.
func TestRedefinesBuiltinID(t *testing.T) {
testRule(t, "redefines_builtin_id", &rule.RedefinesBuiltinIDRule{})
}
func TestRedefinesBuiltinIDAfterGo1_21(t *testing.T) {
testRule(t, "go1.21/redefines_builtin_id", &rule.RedefinesBuiltinIDRule{})
}