diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 15:14:03 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 15:14:03 +0400 |
commit | 52deaf7d9b31a4cc5ed36a280e07fdfeff975362 (patch) | |
tree | 7864aa9cd01a8d7c793246c6d993747577bdab3b /test/src/model/FunctionTest.kt | |
parent | 9ebe89742ccf29bb7efb6198666bd968397320e0 (diff) | |
download | dokka-52deaf7d9b31a4cc5ed36a280e07fdfeff975362.tar.gz dokka-52deaf7d9b31a4cc5ed36a280e07fdfeff975362.tar.bz2 dokka-52deaf7d9b31a4cc5ed36a280e07fdfeff975362.zip |
Add signature generator classes, refactor classes into files and nested enums.
Diffstat (limited to 'test/src/model/FunctionTest.kt')
-rw-r--r-- | test/src/model/FunctionTest.kt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt index 5309ff89..e501d3c0 100644 --- a/test/src/model/FunctionTest.kt +++ b/test/src/model/FunctionTest.kt @@ -9,7 +9,7 @@ public class FunctionTest { verifyModel("test/data/functions/function.kt") { model -> with(model.members.single().members.single()) { assertEquals("fn", name) - assertEquals(DocumentationNodeKind.Function, kind) + assertEquals(DocumentationNode.Kind.Function, kind) assertEquals("Function fn", doc.summary) assertEquals("Unit", details.single().name) assertTrue(members.none()) @@ -22,14 +22,14 @@ public class FunctionTest { verifyModel("test/data/functions/functionWithReceiver.kt") { model -> with(model.members.single().members.single()) { assertEquals("fn", name) - assertEquals(DocumentationNodeKind.Function, kind) + assertEquals(DocumentationNode.Kind.Function, kind) assertEquals("Function with receiver", doc.summary) assertEquals("Unit", details.elementAt(0).name) assertEquals(2, details.count()) with(details.elementAt(1)) { assertEquals("<this>", name) - assertEquals(DocumentationNodeKind.Receiver, kind) + assertEquals(DocumentationNode.Kind.Receiver, kind) assertEquals(DocumentationContent.Empty, doc) assertEquals("String", details.single().name) assertTrue(members.none()) @@ -45,14 +45,14 @@ public class FunctionTest { verifyModel("test/data/functions/genericFunction.kt") { model -> with(model.members.single().members.single()) { assertEquals("generic", name) - assertEquals(DocumentationNodeKind.Function, kind) + assertEquals(DocumentationNode.Kind.Function, kind) assertEquals("generic function", doc.summary) assertEquals(2, details.count()) assertEquals("Unit", details.elementAt(0).name) with(details.elementAt(1)) { assertEquals("T", name) - assertEquals(DocumentationNodeKind.TypeParameter, kind) + assertEquals(DocumentationNode.Kind.TypeParameter, kind) assertEquals(DocumentationContent.Empty, doc) assertTrue(details.none()) assertTrue(members.none()) @@ -68,18 +68,18 @@ public class FunctionTest { verifyModel("test/data/functions/genericFunctionWithConstraints.kt") { model -> with(model.members.single().members.single()) { assertEquals("generic", name) - assertEquals(DocumentationNodeKind.Function, kind) + assertEquals(DocumentationNode.Kind.Function, kind) assertEquals("generic function", doc.summary) assertEquals(3, details.count()) assertEquals("Unit", details.elementAt(0).name) with(details.elementAt(1)) { assertEquals("T", name) - assertEquals(DocumentationNodeKind.TypeParameter, kind) + assertEquals(DocumentationNode.Kind.TypeParameter, kind) assertEquals(DocumentationContent.Empty, doc) with(details.single()) { assertEquals("R", name) - assertEquals(DocumentationNodeKind.UpperBound, kind) + assertEquals(DocumentationNode.Kind.UpperBound, kind) assertEquals(DocumentationContent.Empty, doc) assertTrue(details.none()) assertTrue(members.none()) @@ -90,7 +90,7 @@ public class FunctionTest { } with(details.elementAt(2)) { assertEquals("R", name) - assertEquals(DocumentationNodeKind.TypeParameter, kind) + assertEquals(DocumentationNode.Kind.TypeParameter, kind) assertEquals(DocumentationContent.Empty, doc) assertTrue(members.none()) assertTrue(links.none()) @@ -106,7 +106,7 @@ public class FunctionTest { verifyModel("test/data/functions/functionWithParams.kt") { model -> with(model.members.single().members.single()) { assertEquals("function", name) - assertEquals(DocumentationNodeKind.Function, kind) + assertEquals(DocumentationNode.Kind.Function, kind) assertEquals("""Multiline Function Documentation""" @@ -116,7 +116,7 @@ Documentation""" assertEquals("Unit", details.elementAt(0).name) with(details.elementAt(1)) { assertEquals("x", name) - assertEquals(DocumentationNodeKind.Parameter, kind) + assertEquals(DocumentationNode.Kind.Parameter, kind) assertEquals("parameter", doc.summary) assertEquals("Int", details.single().name) assertTrue(members.none()) |