Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Now that
consume
is closer to being a reality, we should explore the idea of making the test set fuzzable by defining a pytest marker that can be added to a test to mark some of its parameters or fixtures as fuzzable.In the case of fuzzable parameters we could have the following:
Which specifies that the test can be converted to a fuzz test and the inputs
dest
,src
andlength
can be randomized.By default, the fuzzer should try to fuzz
int
values from0 - 2**256-1
but it should be possible to add atyping.Annotated
that perhaps contains a function which produces the random value.It might be possible to also add fixture names to the parameter string passed to the marker, but I'm not entirely sure if it would be possible to extract the correct annotations from the fixture function definition.
Beta Was this translation helpful? Give feedback.
All reactions