fix: Merge extension only when patch executes (#315)

This commit is contained in:
oSumAtrIX
2024-10-27 16:00:30 +01:00
committed by GitHub
parent ab624f04f6
commit aa472eb985
4 changed files with 36 additions and 37 deletions

View File

@@ -195,7 +195,7 @@ internal object PatcherTest {
private operator fun Set<Patch<*>>.invoke(): List<PatchResult> {
every { patcher.context.executablePatches } returns toMutableSet()
every { patcher.context.bytecodeContext.lookupMaps } returns LookupMaps(patcher.context.bytecodeContext.classes)
every { with(patcher.context.bytecodeContext) { any<Set<Patch<*>>>().mergeExtensions() } } just runs
every { with(patcher.context.bytecodeContext) { any<BytecodePatch>().mergeExtension() } } just runs
return runBlocking { patcher().toList() }
}