mirror of
https://codeberg.org/scip/valpass.git
synced 2025-12-16 12:11:00 +01:00
fix linting errors
This commit is contained in:
12
lib_test.go
12
lib_test.go
@@ -12,10 +12,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Tests struct {
|
type Tests struct {
|
||||||
name string
|
name string
|
||||||
want bool
|
want bool
|
||||||
negate bool
|
opts valpass.Options
|
||||||
opts valpass.Options
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var pass_random_good = []string{
|
var pass_random_good = []string{
|
||||||
@@ -299,7 +298,10 @@ func BenchmarkValidateAllwDict(b *testing.B) {
|
|||||||
passwords := GetPasswords(b.N)
|
passwords := GetPasswords(b.N)
|
||||||
|
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
valpass.Validate(passwords[i], opts_dict)
|
_, err := valpass.Validate(passwords[i], opts_dict)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user