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,6 +7,10 @@ import (
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestLintFileHeaderDefault(t *testing.T) {
|
||||
testRule(t, "lint_file_header_default", &rule.FileHeaderRule{}, &lint.RuleConfig{})
|
||||
}
|
||||
|
||||
func TestLintFileHeader(t *testing.T) {
|
||||
testRule(t, "lint_file_header1", &rule.FileHeaderRule{}, &lint.RuleConfig{
|
||||
Arguments: []any{"foobar"},
|
||||
|
||||
Reference in New Issue
Block a user