-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyClassFuzzTest1.java
More file actions
22 lines (18 loc) · 847 Bytes
/
MyClassFuzzTest1.java
File metadata and controls
22 lines (18 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package .;
import com.code_intelligence.jazzer.api.FuzzedDataProvider;
import com.code_intelligence.jazzer.junit.FuzzTest;
class MyClassFuzzTest1 {
@FuzzTest
void myFuzzTest(FuzzedDataProvider data) {
int a = data.consumeInt();
int b = data.consumeInt();
String c = data.consumeRemainingAsString();
ExploreMe.exploreMe(a, b, c);
// Call the functions you want to test with the provided data and optionally
// assert that the results are as expected.
// If you want to know more about writing fuzz tests you can checkout the
// example projects at https://github.com/CodeIntelligenceTesting/cifuzz/tree/main/examples
// or have a look at our tutorial:
// https://github.com/CodeIntelligenceTesting/cifuzz/blob/main/docs/How-To-Write-A-Fuzz-Test.md
}
}