aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/FunctionTest.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 15:00:35 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 15:00:35 +0400
commit9ebe89742ccf29bb7efb6198666bd968397320e0 (patch)
tree6a4ccb8dfb0e0f64fa8dae57963c6af3c99e5fc6 /test/src/model/FunctionTest.kt
parent16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb (diff)
downloaddokka-9ebe89742ccf29bb7efb6198666bd968397320e0.tar.gz
dokka-9ebe89742ccf29bb7efb6198666bd968397320e0.tar.bz2
dokka-9ebe89742ccf29bb7efb6198666bd968397320e0.zip
Add test for multiple files generating multiple package nodes, rename nodes->members in Module
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r--test/src/model/FunctionTest.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index 5499b21b..5309ff89 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -7,7 +7,7 @@ import org.jetbrains.dokka.*
public class FunctionTest {
Test fun function() {
verifyModel("test/data/functions/function.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("fn", name)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("Function fn", doc.summary)
@@ -20,7 +20,7 @@ public class FunctionTest {
Test fun functionWithReceiver() {
verifyModel("test/data/functions/functionWithReceiver.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("fn", name)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("Function with receiver", doc.summary)
@@ -43,7 +43,7 @@ public class FunctionTest {
Test fun genericFunction() {
verifyModel("test/data/functions/genericFunction.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("generic", name)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("generic function", doc.summary)
@@ -66,7 +66,7 @@ public class FunctionTest {
}
Test fun genericFunctionWithConstraints() {
verifyModel("test/data/functions/genericFunctionWithConstraints.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("generic", name)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("generic function", doc.summary)
@@ -104,7 +104,7 @@ public class FunctionTest {
Test fun functionWithParams() {
verifyModel("test/data/functions/functionWithParams.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("function", name)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("""Multiline