File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ which can be specified through the CLI client.
87
87
}
88
88
```
89
89
90
- ## Writing a Jest fuzz tests
90
+ ## Writing a Jest fuzz test
91
91
92
92
To create a fuzz test, the ` fuzz ` function on Jest's ` test ` and ` it ` can be
93
93
used.
@@ -116,9 +116,11 @@ describe("My describe", () => {
116
116
});
117
117
```
118
118
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.
122
124
123
125
``` js
124
126
const target = require (" ./target" );
You can’t perform that action at this time.
0 commit comments