mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-22 18:53:58 +00:00
fix: Account for source patch dependency for tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user