mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
test: add default case when no arguments provided to a rule (#1140)
This commit is contained in:
@@ -7,7 +7,12 @@ import (
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestCyclomaticDefault(t *testing.T) {
|
||||
testRule(t, "cyclomatic_default", &rule.CyclomaticRule{}, &lint.RuleConfig{})
|
||||
}
|
||||
|
||||
func TestCyclomatic(t *testing.T) {
|
||||
testRule(t, "cyclomatic_default", &rule.CyclomaticRule{}, &lint.RuleConfig{})
|
||||
testRule(t, "cyclomatic", &rule.CyclomaticRule{}, &lint.RuleConfig{
|
||||
Arguments: []any{int64(1)},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user