fix: Account for source patch dependency for tests

This commit is contained in:
oSumAtrIX 2023-09-13 05:40:59 +02:00
parent a802d0df46
commit 69184187d9
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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