1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

Add tests for the arguments limit

This commit is contained in:
mgechev
2018-02-04 15:10:35 -08:00
parent 8187cdf97d
commit 655402f527
3 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestArgumentLimit(t *testing.T) {
testRule(t, "argument-limit", &rule.ArgumentsLimitRule{}, &lint.RuleConfig{
Arguments: []interface{}{int64(3)},
})
}