Skip to content

Commit

Permalink
Fix main
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Sep 10, 2022
1 parent 04838fe commit 50da109
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -822,7 +822,7 @@ class IgnoredReturnValueSpec(private val env: KotlinCoreEnvironment) {
flowOfChecked("hello")
return 42
}
"""
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)
assertThat(findings)
.singleElement()
Expand Down Expand Up @@ -913,7 +913,7 @@ class IgnoredReturnValueSpec(private val env: KotlinCoreEnvironment) {
fun foo() {
flowOf(1, 2, 3)
}
"""
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)

assertThat(findings)
Expand All @@ -931,7 +931,7 @@ class IgnoredReturnValueSpec(private val env: KotlinCoreEnvironment) {
flowOf(1, 2, 3)
.onEach { println(it) }
}
"""
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)

assertThat(findings)
Expand All @@ -946,7 +946,7 @@ class IgnoredReturnValueSpec(private val env: KotlinCoreEnvironment) {
import kotlinx.coroutines.flow.flowOf
fun foo() = flowOf(1, 2, 3)
"""
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)
assertThat(findings).isEmpty()
}
Expand All @@ -961,7 +961,7 @@ class IgnoredReturnValueSpec(private val env: KotlinCoreEnvironment) {
.onEach { println(it) }
.collect()
}
"""
""".trimIndent()
val findings = subject.compileAndLintWithContext(env, code)
assertThat(findings).isEmpty()
}
Expand Down

0 comments on commit 50da109

Please sign in to comment.