1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-08 03:13:27 +02:00
revive/test/redefines-builtin-id_test.go
chavacava a65fb8d1b5
adds tests for specific go versions (#1043)
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
2024-09-20 16:09:24 +02: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{})
}