blob: 46e25c9f043cdd7394b536f9e6d48c11ef6183bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
package com.jetbrains.dokka.tests
import org.junit.Test
import kotlin.test.*
import com.jetbrains.dokka.*
public class PackageTest {
Test fun rootPackage() {
verifyModel("test/data/packages/rootPackage.kt") { model ->
val item = model.nodes.single()
assertEquals(DocumentationNodeKind.Package, item.kind)
assertEquals("", item.name)
assertEquals("", item.doc)
assertTrue(item.details.none())
assertTrue(item.members.none())
assertTrue(item.links.none())
}
}
Test fun simpleNamePackage() {
verifyModel("test/data/packages/simpleNamePackage.kt") { model ->
val item = model.nodes.single()
assertEquals(DocumentationNodeKind.Package, item.kind)
assertEquals("simple", item.name)
assertEquals("", item.doc)
assertTrue(item.details.none())
assertTrue(item.members.none())
assertTrue(item.links.none())
}
}
Test fun dottedNamePackage() {
verifyModel("test/data/packages/dottedNamePackage.kt") { model ->
val item = model.nodes.single()
assertEquals(DocumentationNodeKind.Package, item.kind)
assertEquals("dot.name", item.name)
assertEquals("", item.doc)
assertTrue(item.details.none())
assertTrue(item.members.none())
assertTrue(item.links.none())
}
}
}
|