diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 16:59:34 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 16:59:34 +0100 |
commit | 0e70fa4ca021bff09e7d9ce64269a4e698512af5 (patch) | |
tree | 48baff7faa1955ff60fed060a531982da33f36f6 /test | |
parent | ef51f7e2466e28db0943d528b6b489aefd098c0d (diff) | |
download | dokka-0e70fa4ca021bff09e7d9ce64269a4e698512af5.tar.gz dokka-0e70fa4ca021bff09e7d9ce64269a4e698512af5.tar.bz2 dokka-0e70fa4ca021bff09e7d9ce64269a4e698512af5.zip |
render annotations
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/annotations.kt | 4 | ||||
-rw-r--r-- | test/data/format/annotations.md | 30 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 2 | ||||
-rw-r--r-- | test/src/model/ClassTest.kt | 1 |
4 files changed, 34 insertions, 3 deletions
diff --git a/test/data/format/annotations.kt b/test/data/format/annotations.kt index 445ec969..9356d4ca 100644 --- a/test/data/format/annotations.kt +++ b/test/data/format/annotations.kt @@ -1,4 +1,6 @@ data class Foo { - inline fun bar() { + inline fun bar([noinline] notInlined: () -> Unit) { } + + inline val x: Int } diff --git a/test/data/format/annotations.md b/test/data/format/annotations.md index e69de29b..83f79397 100644 --- a/test/data/format/annotations.md +++ b/test/data/format/annotations.md @@ -0,0 +1,30 @@ +[test](out.md) / [](out.md) / [Foo](out.md) + + +# Foo + + +``` +data class Foo +``` + + + + +### Constructors + + +| [<init>](out.md) | `public Foo()` | + + +### Properties + + +| [x](out.md) | `inline val x: Int` | + + +### Functions + + +| [bar](out.md) | `inline fun bar(noinline notInlined: () -> Unit): Unit` | + diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index e9852964..531980de 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -21,7 +21,7 @@ public class MarkdownFormatTest { } Test fun annotations() { - verifyOutput("test/data/format/annotations.kt") { model, output -> + verifyOutput("test/data/format/annotations.kt", ".md") { model, output -> markdownService.appendNodes(tempLocation, output, model.members.single().members) } } diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt index b9be30bf..257d73eb 100644 --- a/test/src/model/ClassTest.kt +++ b/test/src/model/ClassTest.kt @@ -166,7 +166,6 @@ public class ClassTest { } } } -} Test fun annotatedClass() { verifyModel("test/data/classes/annotatedClass.kt") { model -> |