mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 22:04:24 +02:00

* refactor: Complete rewrite of `Io` * style: format code * style: rewrite todos * fix: use lateinit instead of nonnull assert for zipEntry * fix: use lateinit instead of nonnull assert for jarEntry & reuse zipEntry * docs: add docs to `Patcher` * test: match output of patcher * chore: add todo to `Io` for removing non-class files Co-authored-by: Sculas <contact@sculas.xyz>
12 lines
388 B
Kotlin
12 lines
388 B
Kotlin
package net.revanced.patcher
|
|
|
|
import java.io.ByteArrayOutputStream
|
|
import kotlin.test.Test
|
|
|
|
internal class ReaderTest {
|
|
@Test
|
|
fun `read jar containing multiple classes`() {
|
|
val testData = PatcherTest::class.java.getResourceAsStream("/test2.jar")!!
|
|
Patcher(testData, ByteArrayOutputStream(), PatcherTest.testSignatures) // reusing test sigs from PatcherTest
|
|
}
|
|
} |