1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/test/receiver-naming_test.go
Ivan Trubach dc30eb1182
fix(receiver-naming): distinguish types with parameters (#692)
* fix(receiver-naming): distinguish types with parameters

* chore: run tests using supported Go versions matrix
2022-06-18 18:47:53 +02:00

16 lines
351 B
Go

package test
import (
"testing"
"github.com/mgechev/revive/internal/typeparams"
"github.com/mgechev/revive/rule"
)
func TestReceiverNamingTypeParams(t *testing.T) {
if !typeparams.Enabled() {
t.Skip("type parameters are not enabled in the current build environment")
}
testRule(t, "receiver-naming-issue-669", &rule.ReceiverNamingRule{})
}