• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

<lambda>null1 package issues
2 
3 import org.jetbrains.dokka.DocumentationNode
4 import org.jetbrains.dokka.NodeKind
5 import org.jetbrains.dokka.tests.toTestString
6 import org.jetbrains.dokka.tests.verifyModel
7 import org.junit.Test
8 import kotlin.test.assertEquals
9 
10 
11 class IssuesTest {
12 
13     @Test
14     fun errorClasses() {
15         verifyModel("testdata/issues/errorClasses.kt", withJdk = true, withKotlinRuntime = true) { model ->
16             val cls = model.members.single().members.single()
17 
18             fun DocumentationNode.returnType() = this.details.find { it.kind == NodeKind.Type }?.name
19             assertEquals("Test", cls.members[1].returnType())
20             assertEquals("List", cls.members[2].returnType())
21             assertEquals("Test", cls.members[3].returnType())
22             assertEquals("Test", cls.members[4].returnType())
23             assertEquals("String", cls.members[5].returnType())
24             assertEquals("String", cls.members[6].returnType())
25             assertEquals("String", cls.members[7].returnType())
26         }
27     }
28 }
29