aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt')
-rw-r--r--plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt48
1 files changed, 0 insertions, 48 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt b/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
deleted file mode 100644
index b5523d50..00000000
--- a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
+++ /dev/null
@@ -1,48 +0,0 @@
-package renderers
-
-import org.jetbrains.dokka.base.signatures.KotlinSignatureProvider
-import org.jetbrains.dokka.base.translators.documentables.PageContentBuilder
-import org.jetbrains.dokka.links.DRI
-import org.jetbrains.dokka.model.Documentable
-import org.jetbrains.dokka.pages.ContentNode
-import org.jetbrains.dokka.pages.ContentPage
-import org.jetbrains.dokka.pages.PageNode
-import org.jetbrains.dokka.pages.RootPageNode
-import org.jetbrains.dokka.testApi.context.MockContext
-import org.jetbrains.dokka.utilities.DokkaConsoleLogger
-import renderers.html.EmptyCommentConverter
-
-abstract class RenderingOnlyTestBase<T> {
- abstract val context: MockContext
- abstract val renderedContent: T
-}
-
-class TestPage(callback: PageContentBuilder.DocumentableContentBuilder.() -> Unit) : RootPageNode(), ContentPage {
- override val dri: Set<DRI> = setOf(DRI.topLevel)
- override val documentable: Documentable? = null
- override val embeddedResources: List<String> = emptyList()
- override val name: String
- get() = "testPage"
- override val children: List<PageNode>
- get() = emptyList()
-
- override val content: ContentNode = PageContentBuilder(
- EmptyCommentConverter,
- KotlinSignatureProvider(EmptyCommentConverter, DokkaConsoleLogger),
- DokkaConsoleLogger
- ).contentFor(
- DRI.topLevel,
- emptySet(),
- block = callback
- )
-
- override fun modified(
- name: String,
- content: ContentNode,
- dri: Set<DRI>,
- embeddedResources: List<String>,
- children: List<PageNode>
- ) = this
-
- override fun modified(name: String, children: List<PageNode>) = this
-}