You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
326 B
23 lines
326 B
package rand
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
var randTool Rand
|
|
|
|
func TestRand_GetPassword(t *testing.T) {
|
|
fmt.Println(randTool.GetPassword(32))
|
|
fmt.Println(randTool.GetPassword())
|
|
|
|
}
|
|
|
|
func FuzzRand_GetPassword(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, a int) {
|
|
fmt.Println(a)
|
|
fmt.Println(randTool.GetPassword(a))
|
|
})
|
|
|
|
}
|