Modernize patch api names, deprecate fingerprints, simplify patching code even more, add mutablemethod implementation setter, refactor tests and improve for better coverage

This commit is contained in:
oSumAtrIX
2025-12-29 07:41:07 +01:00
parent f17fbd8c40
commit 005c91bc08
13 changed files with 237 additions and 543 deletions

View File

@@ -21,7 +21,7 @@ abstract class PatcherTestBase {
protected lateinit var bytecodePatchContext: BytecodePatchContext
protected lateinit var resourcePatchContext: ResourcePatchContext
protected fun setUpMock(
protected fun setupMock(
method: ImmutableMethod = ImmutableMethod(
"class",
"method",
@@ -89,7 +89,7 @@ abstract class PatcherTestBase {
protected operator fun Set<Patch>.invoke() {
runCatching {
execute(
apply(
bytecodePatchContext,
resourcePatchContext
) { }