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