mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +02:00
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{})
|
|
}
|