aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/model
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-04-29 15:03:08 +0300
committerGitHub <noreply@github.com>2022-04-29 15:03:08 +0300
commit8c218ff4dd5f970233c43845c19299fc74256389 (patch)
treeb6818183ce8faa2c58d6571ca1c86aa28d4f0431 /plugins/base/src/test/kotlin/model
parent84aacad29982240ae367b21e9d283d38dab672ae (diff)
downloaddokka-8c218ff4dd5f970233c43845c19299fc74256389.tar.gz
dokka-8c218ff4dd5f970233c43845c19299fc74256389.tar.bz2
dokka-8c218ff4dd5f970233c43845c19299fc74256389.zip
Enable warnings as errors and fix all warnings (#2451)
* Enable warnings as errors and fix all warnings * Enable skip-metadata-version-check compiler setting
Diffstat (limited to 'plugins/base/src/test/kotlin/model')
-rw-r--r--plugins/base/src/test/kotlin/model/CommentTest.kt82
1 files changed, 0 insertions, 82 deletions
diff --git a/plugins/base/src/test/kotlin/model/CommentTest.kt b/plugins/base/src/test/kotlin/model/CommentTest.kt
index 59b1817a..6a7b2d89 100644
--- a/plugins/base/src/test/kotlin/model/CommentTest.kt
+++ b/plugins/base/src/test/kotlin/model/CommentTest.kt
@@ -72,7 +72,6 @@ class CommentTest : AbstractModelTest("/src/main/kotlin/comment/Test.kt", "comme
|fun tst() = property
"""
) {
- val p = this
with((this / "comment" / "property").cast<DProperty>()) {
comments() equals ""
}
@@ -252,85 +251,4 @@ class CommentTest : AbstractModelTest("/src/main/kotlin/comment/Test.kt", "comme
}
}
}
-
-// @Test todo
- fun directive() {
- inlineModelTest(
- """
- |/**
- | * Summary
- | *
- | * @sample example1
- | * @sample example2
- | * @sample X.example3
- | * @sample X.Y.example4
- | */
- |val property = "test"
- |
- |fun example1(node: String) = if (true) {
- | println(property)
- |}
- |
- |fun example2(node: String) {
- | if (true) {
- | println(property)
- | }
- |}
- |
- |class X {
- | fun example3(node: String) {
- | if (true) {
- | println(property)
- | }
- | }
- |
- | class Y {
- | fun example4(node: String) {
- | if (true) {
- | println(property)
- | }
- | }
- | }
- |}
- """
- ) {
- with((this / "comment" / "property").cast<DProperty>()) {
- this
- }
- }
- }
-
-
-// @Test fun directive() {
-// checkSourceExistsAndVerifyModel("testdata/comments/directive.kt", defaultModelConfig) { model ->
-// with(model.members.single().members.first()) {
-// assertEquals("Summary", content.summary.toTestString())
-// with (content.description) {
-// assertEqualsIgnoringSeparators("""
-// |[code lang=kotlin]
-// |if (true) {
-// | println(property)
-// |}
-// |[/code]
-// |[code lang=kotlin]
-// |if (true) {
-// | println(property)
-// |}
-// |[/code]
-// |[code lang=kotlin]
-// |if (true) {
-// | println(property)
-// |}
-// |[/code]
-// |[code lang=kotlin]
-// |if (true) {
-// | println(property)
-// |}
-// |[/code]
-// |""".trimMargin(), toTestString())
-// }
-// }
-// }
-// }
-
}