test: Add tests for unknown opcodes

This commit is contained in:
Lucaskyy 2022-04-14 18:37:43 +02:00 committed by oSumAtrIX
parent 0e5f4ba2d5
commit bca948658e
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

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
)