Skip to content

Commit

Permalink
test: Add tests for unknown opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Apr 14, 2022
1 parent f4a47d4 commit fd630cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit fd630cd

Please sign in to comment.