Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active March 28, 2022 17:25
Show Gist options
  • Save percybolmer/81217d614c304e7620f1afbdf2c0f399 to your computer and use it in GitHub Desktop.
Save percybolmer/81217d614c304e7620f1afbdf2c0f399 to your computer and use it in GitHub Desktop.
func MultipleInputs(a, b int, name string) {
// ... fancy code goes here
}
func FuzzMultipleInputs(f *testing.F) {
// We can add Multiple Seeds, but it has to be the same order as the input parameters for MultipleInputs
f.Add(10,20,"John the Ripper")
f.Fuzz(func(t *testing.T,a int,b int,name string){
MultipleInputs(a,b,name)
})
}
@monkrus
Copy link

monkrus commented Mar 28, 2022

Hi @percybolmer, thank you very much for the detailed explanation! Not it is all clear for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment