From ee84d85e718bba3a601489a88728ec5ea837849b Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Tue, 28 Jan 2020 15:36:41 +0100 Subject: tests --- core/src/test/kotlin/basic/DokkaBasicTests.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/test/kotlin/basic/DokkaBasicTests.kt') diff --git a/core/src/test/kotlin/basic/DokkaBasicTests.kt b/core/src/test/kotlin/basic/DokkaBasicTests.kt index d418e36a..021f110c 100644 --- a/core/src/test/kotlin/basic/DokkaBasicTests.kt +++ b/core/src/test/kotlin/basic/DokkaBasicTests.kt @@ -1,5 +1,7 @@ package basic +import org.jetbrains.dokka.pages.ClasslikePageNode +import org.jetbrains.dokka.pages.ModulePageNode import org.junit.Test import testApi.testRunner.AbstractCoreTest @@ -29,7 +31,11 @@ class DokkaBasicTests : AbstractCoreTest() { ) { pagesGenerationStage = { println(it.dri) + assert(it.getClasslikeToMemberMap().filterKeys { it.name == "Test" }.entries.firstOrNull()?.value?.size == 5) } } } + + fun ModulePageNode.getClasslikeToMemberMap() = + this.parentMap.filterValues { it is ClasslikePageNode }.entries.groupBy ({it.value}){it.key} } \ No newline at end of file -- cgit