|
2 | 2 |
|
3 | 3 | import static java.util.Collections.emptyList; |
4 | 4 |
|
5 | | -import java.io.File; |
6 | | -import java.io.IOException; |
7 | | -import java.net.MalformedURLException; |
8 | | -import java.net.URI; |
9 | | -import java.net.URISyntaxException; |
10 | | -import java.net.URL; |
11 | | -import java.util.ArrayList; |
12 | | -import java.util.Collection; |
13 | | -import java.util.List; |
14 | | -import java.util.Set; |
15 | | - |
16 | 5 | import com.ibm.wala.cast.python.client.PythonAnalysisEngine; |
17 | 6 | import com.ibm.wala.cast.python.types.PythonTypes; |
18 | 7 | import com.ibm.wala.cast.types.AstMethodReference; |
|
29 | 18 | import com.ibm.wala.types.TypeReference; |
30 | 19 | import com.ibm.wala.util.CancelException; |
31 | 20 | import com.ibm.wala.util.collections.HashSetFactory; |
| 21 | +import java.io.File; |
| 22 | +import java.io.IOException; |
| 23 | +import java.net.MalformedURLException; |
| 24 | +import java.net.URI; |
| 25 | +import java.net.URISyntaxException; |
| 26 | +import java.net.URL; |
| 27 | +import java.util.ArrayList; |
| 28 | +import java.util.Collection; |
| 29 | +import java.util.List; |
| 30 | +import java.util.Set; |
32 | 31 |
|
33 | 32 | public abstract class TestPythonCallGraphShape extends TestCallGraphShape { |
34 | 33 |
|
@@ -132,12 +131,12 @@ StringBuffer dump(CallGraph CG) { |
132 | 131 | } |
133 | 132 | return sb; |
134 | 133 | } |
135 | | - |
| 134 | + |
136 | 135 | protected void verifyGraphAssertions(CallGraph CG, Object[][] data) { |
137 | | - List<GraphAssertion> asserts = new ArrayList<>(); |
138 | | - for(int i = 0; i < data.length; i++) { |
139 | | - asserts.add(new GraphAssertion(data[i][0], (String[]) data[i][1])); |
140 | | - } |
141 | | - verifyGraphAssertions(CG, asserts); |
| 136 | + List<GraphAssertion> asserts = new ArrayList<>(); |
| 137 | + for (int i = 0; i < data.length; i++) { |
| 138 | + asserts.add(new GraphAssertion(data[i][0], (String[]) data[i][1])); |
| 139 | + } |
| 140 | + verifyGraphAssertions(CG, asserts); |
142 | 141 | } |
143 | 142 | } |
0 commit comments