mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
fix: error-strings custom funcs overwrites defaults (#1249)
This commit is contained in:
@@ -13,3 +13,10 @@ func TestErrorStringsWithCustomFunctions(t *testing.T) {
|
||||
Arguments: args,
|
||||
})
|
||||
}
|
||||
|
||||
func TestErrorStringsIssue1243(t *testing.T) {
|
||||
args := []any{"errors.Wrap"}
|
||||
testRule(t, "error_strings_issue_1243", &rule.ErrorStringsRule{}, &lint.RuleConfig{
|
||||
Arguments: args,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user