From d5a3c76389ba902c22ddc8b7ba1a110b7ff852df Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Sun, 20 Mar 2022 15:54:41 +0100 Subject: [PATCH] fix: avoid ignoring test resources (fixes #1) --- .gitignore | 2 ++ .../kotlin/net/revanced/patcher/util/TestUtil.kt | 14 ++++++++++++++ src/test/resources/test1.jar | Bin 0 -> 758 bytes 3 files changed, 16 insertions(+) create mode 100644 src/test/kotlin/net/revanced/patcher/util/TestUtil.kt create mode 100644 src/test/resources/test1.jar diff --git a/.gitignore b/.gitignore index b73322c..4a26c48 100644 --- a/.gitignore +++ b/.gitignore @@ -113,3 +113,5 @@ gradle-app.setting # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 # gradle/wrapper/gradle-wrapper.properties +# Avoid ignoring test resources +!src/test/resources/* diff --git a/src/test/kotlin/net/revanced/patcher/util/TestUtil.kt b/src/test/kotlin/net/revanced/patcher/util/TestUtil.kt new file mode 100644 index 0000000..38b10b9 --- /dev/null +++ b/src/test/kotlin/net/revanced/patcher/util/TestUtil.kt @@ -0,0 +1,14 @@ +package net.revanced.patcher.util + +import org.objectweb.asm.tree.AbstractInsnNode +import kotlin.test.assertTrue + +object TestUtil { + fun assertNodeEqual(a: T, b: T) { + assertTrue() + } + + private fun AbstractInsnNode.nodeString(): String { + + } +} \ No newline at end of file diff --git a/src/test/resources/test1.jar b/src/test/resources/test1.jar new file mode 100644 index 0000000000000000000000000000000000000000..33dee5f7acd607711b8d3a0f6dee9f7363e77967 GIT binary patch literal 758 zcmWIWW@Zs#;Nak3=$}v=!hi%g8CV#6T|*poJ^kGD|D9rBU}gyLX6FE@V1gfadVs4wbdE7UnCrE z%3gRnz;g1$Gv_3E-hY^OQ0AEN!3#1cJz}0dbWusR3v8L8I9<^B`fh36AI#rH`=8ZK zP&JyxzvTkoBb%9B+$&G^ZuHo^@KI*fqLX|&A-XwMHx8LO{|(X*mH#gP*yZdu-8U9D zj>RpA>*-?i4e4GP8CKe?D>SnU>Q=I=T+MjPx^&w|u42#a z-K*F_O*vPJ$4cD?Mf8l|xr@~p85mXqaey}?lL!N9I)NnuP&z>c@Q4Sc8g#A5F$YQ| s2w)3j!nGo$8DtYcF^udmPz)o$VIUJNz5~2j*+2@Ifp8a)Rs%a50P9%iXaE2J literal 0 HcmV?d00001