From cc5c1f293289fe896c4f4816bc76e9b4c5dae16c Mon Sep 17 00:00:00 2001 From: Severn Everett Date: Mon, 13 Dec 2021 08:34:24 +0100 Subject: [PATCH] Removing test due to it failing compilation check --- .../detekt/rules/style/optional/OptionalUnitSpec.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/optional/OptionalUnitSpec.kt b/detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/optional/OptionalUnitSpec.kt index 636b5d0b20e..edaa59ecfee 100644 --- a/detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/optional/OptionalUnitSpec.kt +++ b/detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/optional/OptionalUnitSpec.kt @@ -346,14 +346,6 @@ class OptionalUnitSpec : Spek({ assertThat(findings).isEmpty() } - it("should report when it cannot resolve the initializer call") { - val code = """ - fun doFoo(): Unit = unknownCall {} - """.trimIndent() - val findings = subject.compileAndLintWithContext(env, code) - assertThat(findings).hasSize(1) - } - it("should report on function initializers when there is no context") { val code = """ fun test(): Unit = throw UnsupportedOperationException()