From fc64bbc32a837f91093513b1e9040cbc828458f5 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Sat, 19 Mar 2022 22:53:05 +0100 Subject: [PATCH] Minor things --- src/main/kotlin/net/revanced/patcher/writer/ASMWriter.kt | 2 +- src/test/kotlin/net/revanced/patcher/PatcherTest.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/net/revanced/patcher/writer/ASMWriter.kt b/src/main/kotlin/net/revanced/patcher/writer/ASMWriter.kt index 77d44b8..1d4675c 100644 --- a/src/main/kotlin/net/revanced/patcher/writer/ASMWriter.kt +++ b/src/main/kotlin/net/revanced/patcher/writer/ASMWriter.kt @@ -4,6 +4,6 @@ import org.objectweb.asm.tree.InsnList object ASMWriter { fun InsnList.testingWow() { - TODO() + } } \ No newline at end of file diff --git a/src/test/kotlin/net/revanced/patcher/PatcherTest.kt b/src/test/kotlin/net/revanced/patcher/PatcherTest.kt index 29f1e3d..a5fb962 100644 --- a/src/test/kotlin/net/revanced/patcher/PatcherTest.kt +++ b/src/test/kotlin/net/revanced/patcher/PatcherTest.kt @@ -32,7 +32,8 @@ internal class PatcherTest { patcher.addPatches( Patch ("TestPatch") { val main = patcher.cache.methods["mainMethod"] - //main.method.instructions!!.testingWow() + val insn = main.method.instructions!! + PatchResultSuccess() } )