The testing/quick package is not used for fuzz-like tests; use testing.F and f.Fuzz instead. Define a seed with f.Add and implement the test logic inside f.Fuzz to let Go generate random inputs.
func FuzzMyFunction(f *testing.F) {
f.Add("seed1", 123)
f.Fuzz(func(t *testing.T, input string, val int) {
// Test logic here
if !IsValid(input, val) {
t.Fatalf("found invalid input: %s, %d", input, val)
}
})
}
Run the test with go test -fuzz=FuzzMyFunction.