MCPcopy Create free account
hub / github.com/LFYSec/MScan / testStmtIndexer

Method testStmtIndexer

src/test/java/pascal/taie/ir/IRTest.java:36–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34public class IRTest {
35
36 @Test
37 void testStmtIndexer() {
38 Main.buildWorld("-pp", "-cp", "src/test/resources/world",
39 "--input-classes", "AllInOne");
40 World.get()
41 .getClassHierarchy()
42 .applicationClasses()
43 .forEach(c -> {
44 for (JMethod m : c.getDeclaredMethods()) {
45 if (!m.isAbstract()) {
46 IR ir = m.getIR();
47 for (Stmt s : ir) {
48 assertEquals(s, ir.getObject(s.getIndex()));
49 }
50 }
51 }
52 });
53 }
54}

Callers

nothing calls this directly

Calls 10

buildWorldMethod · 0.95
getMethod · 0.95
getClassHierarchyMethod · 0.80
forEachMethod · 0.65
applicationClassesMethod · 0.65
getDeclaredMethodsMethod · 0.65
getIRMethod · 0.65
getObjectMethod · 0.65
getIndexMethod · 0.65
isAbstractMethod · 0.45

Tested by

no test coverage detected