mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-13 02:14:27 +01:00
test: fix test with previous changes
This commit is contained in:
parent
4e7378bd79
commit
1bd6d1d5b8
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ internal class PatcherTest {
|
|||
"main-method",
|
||||
"V",
|
||||
AccessFlags.PUBLIC or AccessFlags.STATIC,
|
||||
setOf("[L"),
|
||||
arrayOf("[L"),
|
||||
arrayOf(
|
||||
Opcode.CONST_STRING,
|
||||
Opcode.INVOKE_VIRTUAL,
|
||||
|
@ -51,7 +51,7 @@ internal class PatcherTest {
|
|||
// Get the result from the resolver cache
|
||||
val result = cache.methodMap["main-method"]
|
||||
// Get the implementation for the resolved method
|
||||
val implementation = result.resolveAndGetMethod().implementation!!
|
||||
val implementation = result.method().implementation!!
|
||||
// Let's modify it, so it prints "Hello, ReVanced! Editing bytecode."
|
||||
// Get the start index of our opcode pattern.
|
||||
// This will be the index of the instruction with the opcode CONST_STRING.
|
||||
|
|
Loading…
Reference in a new issue