blob: 33434b6c38e3a51a8afcace2ab1d5e3c7a6b30ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package com.seaofnodes.simple;
import com.seaofnodes.simple.fuzzer.Fuzzer;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* Normal tests run chapter-local regression seeds. Open failures and exploratory
* fuzzing are opt-in (run directly in the IDE or temporarily remove Ignore).
* Seeds depend on this chapter's generator; do not copy them between chapters.
*/
public class FuzzerWrap {
private static final long[] REGRESSION_SEEDS = {
};
private static final long[] OPEN_FAILING_SEEDS = {
};
@Test public void fuzzPeepsRegression () { fuzzPeepsSeeds(REGRESSION_SEEDS); }
@Test @Ignore public void fuzzPeepsOpenFailures() { fuzzPeepsSeeds(OPEN_FAILING_SEEDS); }
private static void fuzzPeepsSeeds(long... seeds) {
var fuzzer = new Fuzzer();
for (long seed : seeds)
fuzzer.fuzzPeepsRegression(seed);
}
@Test
@Ignore
public void fuzzPeepsLarge() {
var fuzzer = new Fuzzer();
for (int i=0; i<100000; i++)
fuzzer.fuzzPeeps(i);
assertTrue(fuzzer.noExceptions());
}
}
|