diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-05-04 13:53:10 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-26 11:32:03 +0200 |
commit | d47d386ad8c0ff4a2c3b9d5b4450a773bdcba2dc (patch) | |
tree | 364724f661349211f053ea80db1a7feb283f48ba /plugins/base/src/test/kotlin/content/seealso | |
parent | b1e3033fca65ac1e8e312e51d2eed4f278ddb076 (diff) | |
download | dokka-d47d386ad8c0ff4a2c3b9d5b4450a773bdcba2dc.tar.gz dokka-d47d386ad8c0ff4a2c3b9d5b4450a773bdcba2dc.tar.bz2 dokka-d47d386ad8c0ff4a2c3b9d5b4450a773bdcba2dc.zip |
Enhance signature presentation. Support presetnation Java as Kotlin and Kotlin as Java. Refactor annotations creation from PSI/Descriptors. Add proper rendering of annotation signatures in both kotlin syntax and java syntax. Tests for annotations
Diffstat (limited to 'plugins/base/src/test/kotlin/content/seealso')
-rw-r--r-- | plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt | 81 |
1 files changed, 73 insertions, 8 deletions
diff --git a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt index b5cb3b72..94288f75 100644 --- a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt +++ b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt @@ -6,6 +6,7 @@ import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest import org.junit.jupiter.api.Test import utils.bareSignature import utils.pWrapped +import utils.ParamAttributes import utils.unnamedTag class ContentForSeeAlsoTest : AbstractCoreTest() { @@ -41,7 +42,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } } } @@ -74,7 +83,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } @@ -121,7 +138,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } @@ -168,7 +193,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } @@ -215,7 +248,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } @@ -265,7 +306,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { pWrapped("random comment") @@ -317,7 +366,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } @@ -365,7 +422,15 @@ class ContentForSeeAlsoTest : AbstractCoreTest() { divergentGroup { divergentInstance { divergent { - bareSignature("function", null, "abc" to "String") + bareSignature( + emptyMap(), + "", + "", + emptySet(), + "function", + null, + "abc" to ParamAttributes(emptyMap(), emptySet(), "String") + ) } after { header(2) { +"See also" } |