File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ which can be specified through the CLI client.
8787}
8888```
8989
90- ## Writing a Jest fuzz tests
90+ ## Writing a Jest fuzz test
9191
9292To create a fuzz test, the ` fuzz ` function on Jest's ` test ` and ` it ` can be
9393used.
@@ -116,9 +116,11 @@ describe("My describe", () => {
116116});
117117```
118118
119- However, the provided ` Buffer ` is not the nicest abstraction to work with. For
120- that reason, Jazzer.js provides the wrapper class ` FuzzedDataProvider ` . An
121- example on how to use everything in combination is shown below.
119+ If the function you want to test expects parameters of types other than
120+ ` Buffer ` , you have to take care of constructing the corresponding arguments from
121+ the provided buffer. To facilitate this step, Jazzer.js provides a utility class
122+ ` FuzzedDataProvider ` that you can use to consume data of certain types from the
123+ fuzzer input. An example on how to use everything in combination is shown below.
122124
123125``` js
124126const target = require (" ./target" );
You can’t perform that action at this time.
0 commit comments