-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassword_test.go
23 lines (21 loc) · 1.12 KB
/
password_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package password
import "testing"
func TestGenerate(t *testing.T) {
pwdList := Generate(nil)
pwdList = append(pwdList, Generate(&Config{10, 21, true, true, true, false})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, true, false, false})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, true, false, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, false, false, false})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, false, true, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, false, true, false})...)
pwdList = append(pwdList, Generate(&Config{10, 21, true, false, false, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, false, false, false, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, false, true, false, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, false, true, true, true})...)
pwdList = append(pwdList, Generate(&Config{10, 21, false, false, false, false})...)
pwdList = append(pwdList, Generate(&Config{0, 21, true, true, true, true})...)
// ...
for _, pwd := range pwdList {
t.Log(pwd)
}
}