1
0
mirror of https://github.com/mgechev/revive.git synced 2025-05-21 22:13:14 +02:00
revive/test/error_strings_custom_functions_test.go

23 lines
505 B
Go
Raw Normal View History

package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestErrorStringsWithCustomFunctions(t *testing.T) {
args := []any{"pkgErrors.Wrap"}
testRule(t, "error_strings_with_custom_functions", &rule.ErrorStringsRule{}, &lint.RuleConfig{
Arguments: args,
})
}
func TestErrorStringsIssue1243(t *testing.T) {
args := []any{"errors.Wrap"}
testRule(t, "error_strings_issue_1243", &rule.ErrorStringsRule{}, &lint.RuleConfig{
Arguments: args,
})
}