aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/content')
-rw-r--r--plugins/base/src/test/kotlin/content/params/ContentForParamsTest.kt152
-rw-r--r--plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt168
-rw-r--r--plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt12
3 files changed, 166 insertions, 166 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")
- )
- }
}
}
}
diff --git a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
index aa9ac045..d5d1966d 100644
--- a/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
+++ b/plugins/base/src/test/kotlin/content/seealso/ContentForSeeAlsoTest.kt
@@ -81,7 +81,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -95,17 +106,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -136,7 +136,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -152,17 +163,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -193,7 +193,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -207,17 +218,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -248,7 +248,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -264,17 +275,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -308,7 +308,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
group { group { group { +"random comment"} } }
unnamedTag("Author") { group { +"pikinier20" } }
unnamedTag("Since") { group { +"0.11" } }
@@ -328,17 +339,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -370,7 +370,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -386,17 +397,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
@@ -428,7 +428,18 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
divergentGroup {
divergentInstance {
- before {
+ divergent {
+ bareSignature(
+ emptyMap(),
+ "",
+ "",
+ emptySet(),
+ "function",
+ null,
+ "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
+ )
+ }
+ after {
header(2) { +"See also" }
group {
platformHinted {
@@ -449,17 +460,6 @@ class ContentForSeeAlsoTest : AbstractCoreTest() {
}
}
}
- divergent {
- bareSignature(
- emptyMap(),
- "",
- "",
- emptySet(),
- "function",
- null,
- "abc" to ParamAttributes(emptyMap(), emptySet(), "String")
- )
- }
}
}
}
diff --git a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
index b3da3f71..df1bfbc6 100644
--- a/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
+++ b/plugins/base/src/test/kotlin/content/signatures/SkippingParenthesisForConstructorsTest.kt
@@ -212,7 +212,6 @@ class ConstructorsSignaturesTest : AbstractCoreTest() {
group {
header(1) { +"SomeClass" }
platformHinted {
- skipAllNotMatching()
group {
+"class"
link { +"SomeClass" }
@@ -220,6 +219,7 @@ class ConstructorsSignaturesTest : AbstractCoreTest() {
group { link { +"String" } }
+")"
}
+ skipAllNotMatching()
}
}
group {
@@ -229,11 +229,6 @@ class ConstructorsSignaturesTest : AbstractCoreTest() {
link { +"SomeClass" }
platformHinted {
group {
- group {
- group { +"ctor comment" }
- }
- }
- group {
+"fun"
link { +"SomeClass" }
+"(a:"
@@ -242,6 +237,11 @@ class ConstructorsSignaturesTest : AbstractCoreTest() {
}
+")"
}
+ group {
+ group {
+ group { +"ctor comment" }
+ }
+ }
}
}
}