2022-03-13 23:30:11 +00:00
|
|
|
//go:build go1.18
|
|
|
|
|
|
|
|
package accounts_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-08-16 12:20:13 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/validator/accounts"
|
2022-03-13 23:30:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func FuzzValidateMnemonic(f *testing.F) {
|
|
|
|
f.Add("bag wagon luxury iron swarm yellow course merge trumpet wide decide cash idea disagree deny teach canvas profit slice beach iron sting warfare slide")
|
|
|
|
f.Add("bag wagon luxury iron swarm yellow course merge trumpet wide cash idea disagree deny teach canvas profit iron sting warfare slide")
|
|
|
|
f.Add("bag wagon luxury iron swarm yellow course merge trumpet cash wide decide profit cash idea disagree deny teach canvas profit slice beach iron sting warfare slide")
|
|
|
|
f.Fuzz(func(t *testing.T, input string) {
|
2022-04-28 18:10:43 +00:00
|
|
|
err := accounts.ValidateMnemonic(input)
|
|
|
|
_ = err
|
2022-03-13 23:30:11 +00:00
|
|
|
})
|
|
|
|
}
|