File tree 1 file changed +7
-4
lines changed
mirror-common/src/test/cn/com/mirror/pair
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
public class PairAnalyserTests {
18
18
19
19
private final String TEST_FILE =
20
- "/home/piggy/work/mirror/mirror-common/src/main/java/cn/com/mirror/analyser/visitor/VariableVisitor .java" ;
20
+ "/home/piggy/work/mirror/mirror-common/src/main/java/cn/com/mirror/project/unit/element/Method .java" ;
21
21
22
22
@ Test
23
23
public void testDirectCtrlEdge () {
24
24
PairAnalyser pairAnalyser = new PairAnalyser ();
25
25
Pair pair = pairAnalyser .analyze ();
26
26
for (Map .Entry <String , Map <Vertex , Vertex >> entry : pair .getCtrlEdges ().entrySet ()) {
27
- // if (TEST_FILE.equals(entry.getKey())) {
27
+ if (!TEST_FILE .equals (entry .getKey ())) {
28
+ // testing specific target
29
+ continue ;
30
+ }
31
+
28
32
log .debug ("Target: {}" , entry .getKey ());
29
33
for (Map .Entry <Vertex , Vertex > ver : entry .getValue ().entrySet ()) {
30
34
System .out .println ("HEAD: " +
@@ -38,8 +42,7 @@ public void testDirectCtrlEdge() {
38
42
ver .getValue ().hashCode ()
39
43
);
40
44
}
41
- // return;
42
- // }
45
+
43
46
}
44
47
}
45
48
}
You can’t perform that action at this time.
0 commit comments