mirror of
https://github.com/mgechev/revive.git
synced 2025-11-27 22:18:41 +02:00
optimizes import-blacklist (#123)
This commit is contained in:
@@ -14,3 +14,13 @@ func TestImportsBlacklist(t *testing.T) {
|
||||
Arguments: args,
|
||||
})
|
||||
}
|
||||
|
||||
func BenchmarkImportsBlacklist(b *testing.B) {
|
||||
args := []interface{}{"crypto/md5", "crypto/sha1"}
|
||||
var t *testing.T
|
||||
for i := 0; i <= b.N; i++ {
|
||||
testRule(t, "imports-blacklist", &rule.ImportsBlacklistRule{}, &lint.RuleConfig{
|
||||
Arguments: args,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user