mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-29 05:10:14 +02:00
fix: Account for source patch dependency for tests
This commit is contained in:
parent
a802d0df46
commit
69184187d9
@ -80,15 +80,17 @@ class TestPatchAnnotationProcessor {
|
|||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
// region Limitations
|
// region Limitations
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun failingManualDependency() = assertNull(
|
fun failingManualDependency() = assertEquals(
|
||||||
|
1, // Generated patch is always dependent on source class.
|
||||||
compile(
|
compile(
|
||||||
getSourceFile(
|
getSourceFile(
|
||||||
"limitations/manualdependency", "DependentPatch"
|
"limitations/manualdependency", "DependentPatch"
|
||||||
), getSourceFile(
|
), getSourceFile(
|
||||||
"limitations/manualdependency", "DependencyPatch"
|
"limitations/manualdependency", "DependencyPatch"
|
||||||
)
|
)
|
||||||
).loadPatch("$SAMPLE_PACKAGE.limitations.manualdependency.DependentPatchGenerated").dependencies
|
).loadPatch("$SAMPLE_PACKAGE.limitations.manualdependency.DependentPatchGenerated").dependencies!!.size
|
||||||
)
|
)
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user