1
0
mirror of https://github.com/mgechev/revive.git synced 2025-12-03 22:39:22 +02:00

Add test case for function-result-limit rule, and updated README

This commit is contained in:
xuri
2018-09-17 18:50:04 +08:00
parent 0c243f004c
commit dd1a8bf4e6
2 changed files with 15 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 TestFunctionResultsLimit(t *testing.T) {
testRule(t, "function-result-limit", &rule.FunctionResultsLimitRule{}, &lint.RuleConfig{
Arguments: []interface{}{int64(3)},
})
}