File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test-kotlin/test-utils/src/com/intellij/rt/coverage Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import com.intellij.rt.coverage.util.CoverageRunner
24
24
import com.intellij.rt.coverage.util.ResourceUtil
25
25
import org.junit.Assert
26
26
import java.io.File
27
- import kotlin.reflect.KMutableProperty
27
+ import kotlin.reflect.KMutableProperty0
28
28
29
29
30
30
abstract class TestResult {
@@ -156,13 +156,13 @@ internal fun runWithCoverage(
156
156
.also { assertEmptyLogFile(coverageDataFile) }
157
157
}
158
158
159
- inline fun runWithOptions (values : Map <KMutableProperty <Boolean >, Boolean >, action : () -> Unit ) {
160
- val originalValues = values.mapValues { it.key.getter.call () }
161
- values.forEach { (field, value) -> field.setter.call (value) }
159
+ inline fun runWithOptions (values : Map <KMutableProperty0 <Boolean >, Boolean >, action : () -> Unit ) {
160
+ val originalValues = values.mapValues { it.key.get () }
161
+ values.forEach { (field, value) -> field.set (value) }
162
162
try {
163
163
action()
164
164
} finally {
165
- originalValues.forEach { (field, value) -> field.setter.call (value) }
165
+ originalValues.forEach { (field, value) -> field.set (value) }
166
166
}
167
167
}
168
168
You can’t perform that action at this time.
0 commit comments