Commit 10816206 authored by Evgeny Mandrikov's avatar Evgeny Mandrikov
Browse files

add unit test

parent d0d75430
Pipeline #4432 failed with stage
in 5 minutes and 8 seconds
......@@ -1132,4 +1132,15 @@ public class CheckMethodAdapterTest extends AsmTest implements Opcodes {
"Data flow checking option requires valid, non zero maxLocals and maxStack.",
exception.getMessage());
}
@Test
public void testVisitEnd_valid() {
CheckMethodAdapter dataFlowCheckMethodAdapter =
new CheckMethodAdapter(0, "m", "()V", null, new HashMap<>());
dataFlowCheckMethodAdapter.visitCode();
dataFlowCheckMethodAdapter.visitInsn(RETURN);
dataFlowCheckMethodAdapter.visitMaxs(0, 1);
dataFlowCheckMethodAdapter.visitEnd();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment