1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-28 03:56:53 +02:00
revive/test/import-blacklist_test.go

17 lines
308 B
Go
Raw Normal View History

package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestImportsBlacklist(t *testing.T) {
args := []interface{}{"crypto/md5", "crypto/sha1"}
testRule(t, "imports-blacklist", &rule.ImportsBlacklistRule{}, &lint.RuleConfig{
Arguments: args,
})
}