Skip to content

Commit

Permalink
test: fix outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas authored and oSumAtrIX committed Jun 5, 2022
1 parent 3cf07f5 commit 6c97975
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package app.revanced.patcher.usage

import app.revanced.patcher.PatcherData
import app.revanced.patcher.extensions.AccessFlagExtensions.Companion.or
import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.extensions.or
import app.revanced.patcher.patch.Patch
import app.revanced.patcher.patch.PatchMetadata
import app.revanced.patcher.patch.PatchResult
Expand Down Expand Up @@ -31,12 +31,13 @@ import org.jf.dexlib2.immutable.reference.ImmutableStringReference
import org.jf.dexlib2.immutable.value.ImmutableFieldEncodedValue
import org.jf.dexlib2.util.Preconditions

@Suppress("unused") // TODO: Add tests
class ExamplePatch : Patch(
metadata = PatchMetadata(
shortName = "example-patch",
name = "ReVanced example patch",
description = "A demonstrative patch to feature the core features of the ReVanced patcher",
compatiblePackages = arrayOf("com.example.examplePackage"),
compatiblePackages = listOf("com.example.examplePackage"),
version = "0.0.1"
),
signatures = setOf(
Expand All @@ -48,12 +49,12 @@ class ExamplePatch : Patch(
name = "main",
),
patternScanMethod = PatternScanMethod.Fuzzy(2),
compatiblePackages = arrayOf("com.example.examplePackage"),
compatiblePackages = listOf("com.example.examplePackage"),
description = "The main method of TestClass",
version = "1.0.0"
),
returnType = "V",
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC or AccessFlags.STATIC,
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC,
methodParameters = listOf("[L"),
opcodes = listOf(
Opcode.CONST_STRING,
Expand Down

0 comments on commit 6c97975

Please sign in to comment.