()
| 34 | public 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 | } |
nothing calls this directly
no test coverage detected