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:
14
test/argument-limit_test.go
Normal file
14
test/argument-limit_test.go
Normal 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)},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user