mirror of
https://github.com/mgechev/revive.git
synced 2025-01-08 03:13:27 +02:00
a65fb8d1b5
Co-authored-by: chavacava <salvador.cavadini@gmail.com>
17 lines
355 B
Go
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{})
|
|
}
|