-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathImmutabilityReImInferenceTest.java
More file actions
42 lines (35 loc) · 1.31 KB
/
ImmutabilityReImInferenceTest.java
File metadata and controls
42 lines (35 loc) · 1.31 KB
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
42
package pico;
import checkers.inference.test.CFInferenceTest;
import org.checkerframework.framework.test.TestUtilities;
import org.checkerframework.javacutil.Pair;
import org.junit.Ignore;
import org.junit.runners.Parameterized.Parameters;
import pico.inference.PICOInferenceChecker;
import pico.inference.solver.PICOSolverEngine;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@SuppressWarnings("initialization")
public class ImmutabilityReImInferenceTest extends CFInferenceTest {
public ImmutabilityReImInferenceTest(File testFile) {
super(testFile, PICOInferenceChecker.class, "",
"-Anomsgtext",
"-Astubs=src/main/java/pico/inference/jdk.astub",
"-d", "testdata/reiminfer");
}
@Override
public Pair<String, List<String>> getSolverNameAndOptions() {
return Pair.of(PICOSolverEngine.class.getCanonicalName(),
new ArrayList<>(Arrays.asList("useGraph=false", "collectStatistic=true")));
}
@Override
public boolean useHacks() {
return true;
}
@Parameters
public static List<File> getTestFiles(){
//InferenceTestUtilities.findAllSystemTests();
return new ArrayList<>(TestUtilities.findRelativeNestedJavaFiles("testinput", "reiminfer"));
}
}