diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-01-21 00:34:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 00:34:43 +0100 |
commit | fdf8a298f586d7e334c312346b70b59c64c8d037 (patch) | |
tree | d9e92e920c24f442df6339e19b27225d7d01d21b /plugins/javadoc/src/test | |
parent | 1f592a7ec2786e0a0b77d224d1414ef3042caae4 (diff) | |
download | dokka-fdf8a298f586d7e334c312346b70b59c64c8d037.tar.gz dokka-fdf8a298f586d7e334c312346b70b59c64c8d037.tar.bz2 dokka-fdf8a298f586d7e334c312346b70b59c64c8d037.zip |
Empty modules filtering (#1699)
Diffstat (limited to 'plugins/javadoc/src/test')
2 files changed, 13 insertions, 3 deletions
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilterTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilterTest.kt index 5a0a8ba1..91f33acb 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilterTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilterTest.kt @@ -83,7 +83,7 @@ class JavadocDocumentableJVMSourceSetFilterTest: BaseAbstractTest() { fun `non-jvm and not dependent common source sets are ommited`() { testInline(query, config) { documentablesFirstTransformationStep = { modules -> - assertEquals(4, modules.size) + assertEquals(2, modules.size) } } } diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/validity/MultiplatformConfiguredCheckerTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/validity/MultiplatformConfiguredCheckerTest.kt index 1175e365..a892889d 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/validity/MultiplatformConfiguredCheckerTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/validity/MultiplatformConfiguredCheckerTest.kt @@ -48,7 +48,12 @@ class MultiplatformConfiguredCheckerTest : BaseAbstractTest() { @Test fun `mpp config should fail for javadoc`() { - testInline("", mppConfig) { + testInline( + """ + |/src/main/kotlin/example/Test.kt + |class Test + """.trimMargin(), mppConfig + ) { verificationStage = { verification -> var mppDetected = false try { @@ -64,7 +69,12 @@ class MultiplatformConfiguredCheckerTest : BaseAbstractTest() { @Test fun `spp config should not fail for javadoc`() { - testInline("", sppConfig) { + testInline( + """ + |/src/main/kotlin/example/Test.kt + |class Test + """.trimMargin(), sppConfig + ) { verificationStage = { verification -> var mppDetected = false try { |