package scrypt import ( "os" "testing" "testing/internal/testdeps" ) func api(f *testing.F) { f.Fuzz(func(t *testing.T, password []byte, salt []byte) { if len(salt) < _SALT_MIN_LENGTH { return } input := HashInputT{ Password: password, Salt: salt, } _, err := Hash(input) if err != nil { t.Errorf("Failed on: %#v\n", err) } }) } func MainTest() { fuzzTargets := []testing.InternalFuzzTarget{ { "api", api }, } deps := testdeps.TestDeps{} tests := []testing.InternalTest {} benchmarks := []testing.InternalBenchmark{} examples := []testing.InternalExample {} m := testing.MainStart(deps, tests, benchmarks, fuzzTargets, examples) os.Exit(m.Run()) }