aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content/params
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2020-10-01 08:38:31 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-10-08 16:35:33 +0200
commit68553bf4c1de2b640a376f0ac4755a6c5bc7dd79 (patch)
tree034b33e61920f1fa21a1ba44f28ce1d529a79b17 /plugins/base/src/test/kotlin/content/params
parentfd88f63f7f2874df7a4a58a5c7126d8a5a15225b (diff)
downloaddokka-68553bf4c1de2b640a376f0ac4755a6c5bc7dd79.tar.gz
dokka-68553bf4c1de2b640a376f0ac4755a6c5bc7dd79.tar.bz2
dokka-68553bf4c1de2b640a376f0ac4755a6c5bc7dd79.zip
Improve styles
Diffstat (limited to 'plugins/base/src/test/kotlin/content/params')
-rw-r--r--plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt152
1 files changed, 76 insertions, 76 deletions
diff --git a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
index 1116dfa9..2dce7e28 100644
--- a/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
+++ b/plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt
@@ -84,9 +84,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
- group { pWrapped("comment to function") }
- }
divergent {
bareSignature(
emptyMap(),
@@ -98,6 +95,9 @@ class ContentForParamsTest : AbstractCoreTest() {
"abc" to ParamAttributes(emptyMap(), emptySet(), "String")
)
}
+ after {
+ group { pWrapped("comment to function") }
+ }
}
}
}
@@ -129,10 +129,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
- unnamedTag("Author") { group { +"Kordyjan" } }
- unnamedTag("Since") { group { +"0.11" } }
- }
divergent {
bareSignature(
emptyMap(),
@@ -144,6 +140,10 @@ class ContentForParamsTest : AbstractCoreTest() {
"abc" to ParamAttributes(emptyMap(), emptySet(), "String")
)
}
+ after {
+ unnamedTag("Author") { group { +"Kordyjan" } }
+ unnamedTag("Since") { group { +"0.11" } }
+ }
}
}
}
@@ -176,11 +176,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
- group { pWrapped("comment to function") }
- unnamedTag("Author") { group { +"Kordyjan" } }
- unnamedTag("Since") { group { +"0.11" } }
- }
divergent {
bareSignature(
emptyMap(),
@@ -192,6 +187,11 @@ class ContentForParamsTest : AbstractCoreTest() {
"abc" to ParamAttributes(emptyMap(), emptySet(), "String")
)
}
+ after {
+ group { pWrapped("comment to function") }
+ unnamedTag("Author") { group { +"Kordyjan" } }
+ unnamedTag("Since") { group { +"0.11" } }
+ }
}
}
}
@@ -223,7 +223,18 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
group { pWrapped("comment to function") }
header(2) { +"Parameters" }
group {
@@ -237,17 +248,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -281,7 +281,15 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(), "", "", emptySet(), "function", null,
+ "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
+ "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
+ "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
+ )
+ }
+ after {
group { group { group { +"comment to function" } } }
header(2) { +"Parameters" }
group {
@@ -289,28 +297,20 @@ class ContentForParamsTest : AbstractCoreTest() {
table {
group {
+"first"
- group { group { +"comment to first param" } }
+ group { group { +"comment to first param" } }
}
group {
+"second"
- group { group { +"comment to second param" } }
+ group { group { +"comment to second param" } }
}
group {
+"third"
- group { group { +"comment to third param" } }
+ group { group { +"comment to third param" } }
}
}
}
}
}
- divergent {
- bareSignature(
- emptyMap(), "", "", emptySet(), "function", null,
- "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
- "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
- "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
- )
- }
}
}
}
@@ -343,7 +343,15 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(), "", "", emptySet(), "function", null,
+ "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
+ "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
+ "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
+ )
+ }
+ after {
header(2) { +"Parameters" }
group {
platformHinted {
@@ -364,14 +372,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(), "", "", emptySet(), "function", null,
- "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
- "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
- "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
- )
- }
}
}
}
@@ -404,7 +404,19 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignatureWithReceiver(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "String",
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
group { pWrapped("comment to function") }
header(2) { +"Parameters" }
group {
@@ -422,18 +434,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignatureWithReceiver(
- emptyMap(),
- "",
- "",
- emptySet(),
- "String",
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -466,7 +466,15 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(), "", "", emptySet(), "function", null,
+ "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
+ "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
+ "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
+ )
+ }
+ after {
group { group { group { +"comment to function" } } }
header(2) { +"Parameters" }
group {
@@ -484,14 +492,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(), "", "", emptySet(), "function", null,
- "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
- "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
- "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
- )
- }
}
}
}
@@ -527,7 +527,15 @@ class ContentForParamsTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(), "", "", emptySet(), "function", null,
+ "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
+ "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
+ "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
+ )
+ }
+ after {
group { pWrapped("comment to function") }
unnamedTag("Author") { group { +"Kordyjan" } }
unnamedTag("Since") { group { +"0.11" } }
@@ -552,14 +560,6 @@ class ContentForParamsTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(), "", "", emptySet(), "function", null,
- "first" to ParamAttributes(emptyMap(), emptySet(), "String"),
- "second" to ParamAttributes(emptyMap(), emptySet(), "Int"),
- "third" to ParamAttributes(emptyMap(), emptySet(), "Double")
- )
- }
}
}
}