aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-01-21 00:34:43 +0100
committerGitHub <noreply@github.com>2021-01-21 00:34:43 +0100
commitfdf8a298f586d7e334c312346b70b59c64c8d037 (patch)
treed9e92e920c24f442df6339e19b27225d7d01d21b /plugins/javadoc
parent1f592a7ec2786e0a0b77d224d1414ef3042caae4 (diff)
downloaddokka-fdf8a298f586d7e334c312346b70b59c64c8d037.tar.gz
dokka-fdf8a298f586d7e334c312346b70b59c64c8d037.tar.bz2
dokka-fdf8a298f586d7e334c312346b70b59c64c8d037.zip
Empty modules filtering (#1699)
Diffstat (limited to 'plugins/javadoc')
-rw-r--r--plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/transformers/documentables/JavadocDocumentableJVMSourceSetFilterTest.kt2
-rw-r--r--plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/validity/MultiplatformConfiguredCheckerTest.kt14
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 {