aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2023-01-23 19:03:09 +0200
committerGitHub <noreply@github.com>2023-01-23 19:03:09 +0200
commitadfeed1b35b94ced80aba4e13dc926b2c389efb1 (patch)
tree61eb9c93ddc96d155c53f0385d7849b010b3911f /plugins/base/src/test/kotlin
parentb6aa42c4a8b589f9004c70e98b3f75889297408e (diff)
downloaddokka-adfeed1b35b94ced80aba4e13dc926b2c389efb1.tar.gz
dokka-adfeed1b35b94ced80aba4e13dc926b2c389efb1.tar.bz2
dokka-adfeed1b35b94ced80aba4e13dc926b2c389efb1.zip
Dispose `AnalysisEnvironment` (#2755)
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r--plugins/base/src/test/kotlin/model/InheritorsTest.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/base/src/test/kotlin/model/InheritorsTest.kt b/plugins/base/src/test/kotlin/model/InheritorsTest.kt
index 49d02e4c..1be21afa 100644
--- a/plugins/base/src/test/kotlin/model/InheritorsTest.kt
+++ b/plugins/base/src/test/kotlin/model/InheritorsTest.kt
@@ -2,7 +2,7 @@ package model
import org.jetbrains.dokka.Platform
import org.jetbrains.dokka.analysis.DokkaAnalysisConfiguration
-import org.jetbrains.dokka.analysis.KotlinAnalysis
+import org.jetbrains.dokka.analysis.ProjectKotlinAnalysis
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.transformers.documentables.InheritorsInfo
import org.jetbrains.dokka.model.DClass
@@ -61,10 +61,12 @@ class InheritorsTest : AbstractModelTest("/src/main/kotlin/inheritors/Test.kt",
val configuration = dokkaConfiguration {
sourceSets {
sourceSet {
+ name = "jvm"
sourceRoots = listOf("common/src/", "jvm/src/")
analysisPlatform = "jvm"
}
sourceSet {
+ name = "js"
sourceRoots = listOf("common/src/", "js/src/")
analysisPlatform = "js"
}
@@ -156,7 +158,7 @@ class InheritorsTest : AbstractModelTest("/src/main/kotlin/inheritors/Test.kt",
@Suppress("unused")
val stdLibKotlinAnalysis by extending {
dokkaBase.kotlinAnalysis providing { ctx ->
- KotlinAnalysis(
+ ProjectKotlinAnalysis(
sourceSets = ctx.configuration.sourceSets,
logger = ctx.logger,
analysisConfiguration = DokkaAnalysisConfiguration(ignoreCommonBuiltIns = true)