mirror of
https://github.com/mgechev/revive.git
synced 2025-07-13 01:00:17 +02:00
test: add default case when no arguments provided to a rule (#1140)
This commit is contained in:
@ -7,6 +7,10 @@ import (
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestCognitiveComplexityDefault(t *testing.T) {
|
||||
testRule(t, "cognitive_complexity_default", &rule.CognitiveComplexityRule{}, &lint.RuleConfig{})
|
||||
}
|
||||
|
||||
func TestCognitiveComplexity(t *testing.T) {
|
||||
testRule(t, "cognitive_complexity", &rule.CognitiveComplexityRule{}, &lint.RuleConfig{
|
||||
Arguments: []any{int64(0)},
|
||||
|
Reference in New Issue
Block a user