test: Add tests for unknown opcodes

This commit is contained in:
Lucaskyy 2022-04-14 18:37:43 +02:00
parent f4a47d4dc8
commit fd630cd429
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -56,7 +56,8 @@ class ExamplePatch : Patch(
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC,
methodParameters = listOf("[L"),
opcodes = listOf(
Opcode.CONST_STRING,
Opcode.SGET_OBJECT,
null, // Testing unknown opcodes.
Opcode.INVOKE_STATIC, // This is intentionally wrong to test the Fuzzy resolver.
Opcode.RETURN_VOID
)