Revert "Add special tests for interceptRun support"

This reverts commit 01c21e218a.
This commit is contained in:
Denis Zharkov
2016-12-15 10:29:07 +03:00
committed by Stanislav Erokhin
parent 7ffefb515f
commit 8387d04425
56 changed files with 25 additions and 806 deletions
-1
View File
@@ -1,6 +1,5 @@
// WITH_RUNTIME
// WITH_COROUTINES
// NO_INTERCEPT_RESUME_TESTS
// FILE: promise.kt
import kotlin.coroutines.*
@@ -12,8 +12,6 @@ class Controller {
fun foo() {
result = true
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(a + "#" + (i + 1))
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -10,8 +10,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
@@ -7,8 +7,6 @@ class Controller {
x.resume(v)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -1,7 +1,6 @@
// WITH_RUNTIME
// WITH_COROUTINES
// TARGET_BACKEND: JVM
// NO_INTERCEPT_RESUME_TESTS
import kotlin.coroutines.*
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
@@ -19,8 +19,6 @@ class Controller {
suspend inline fun suspendInline(crossinline b: () -> String): String = suspendInline(b())
suspend inline fun <reified T : Any> suspendInline(): String = suspendInline({ T::class.simpleName!! })
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -8,8 +8,6 @@ class Controller {
x.resume((i++).toString())
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -15,8 +15,6 @@ class Controller {
x.resume(Continuation::class.isInstance(y as Continuation<*>))
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -8,8 +8,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -8,8 +8,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume(Unit)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -1,6 +1,5 @@
// WITH_RUNTIME
// WITH_COROUTINES
// NO_INTERCEPT_RESUME_TESTS
import kotlin.coroutines.*
class Controller {
@@ -7,8 +7,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -11,8 +11,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
// MODULE: main(controller)
@@ -14,8 +14,6 @@ class Controller {
}
inline suspend fun String.inlineSuspendHere(): String = suspendHere()
// INTERCEPT_RESUME_PLACEHOLDER
}
suspend fun Controller.suspendExtension(v: String): String = v.suspendHere()
@@ -16,8 +16,6 @@ class Controller {
lastSuspension = null
x.resume("56")
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -16,8 +16,6 @@ class Controller {
lastSuspension = null
x.resume("56")
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -16,8 +16,6 @@ class Controller {
lastSuspension = null
x.resume("56")
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -16,8 +16,6 @@ class Controller {
lastSuspension = null
x.resume("56")
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -32,8 +32,6 @@ class Controller {
postponedActions.removeAt(0)
}
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(expectException: Boolean = false, c: suspend Controller.() -> String) {
@@ -7,8 +7,6 @@ class Controller {
x.resumeWithException(RuntimeException("OK"))
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -4,8 +4,6 @@ import kotlin.coroutines.*
class Controller {
suspend fun suspendHere(): String = throw RuntimeException("OK")
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -12,8 +12,6 @@ class Controller {
suspend inline fun suspendInline(crossinline b: () -> String): String = suspendInline(b())
suspend inline fun <reified T : Any> suspendInline(): String = suspendInline({ T::class.simpleName!! })
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -4,8 +4,6 @@ import kotlin.coroutines.*
class Controller {
suspend fun suspendHere() = "OK"
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -9,8 +9,6 @@ class Controller {
suspend fun suspendThere(): String = suspendWithCurrentContinuation { x ->
"?"
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -9,8 +9,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -10,8 +10,6 @@ class Controller {
}
inline suspend fun String.inlineSuspendHere(): String = suspendHere()
// INTERCEPT_RESUME_PLACEHOLDER
}
suspend fun Controller.suspendExtension(v: String): String = v.suspendHere()
@@ -7,8 +7,6 @@ class Controller {
x.resume(v * 2)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -12,8 +12,6 @@ class Controller {
x.resume("?")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -17,8 +17,6 @@ class Controller {
x.resume(v)
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -32,8 +32,6 @@ class Controller {
postponedActions.removeAt(0)
}
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(expectException: Boolean = false, c: suspend Controller.() -> String) {
@@ -8,8 +8,6 @@ class Controller {
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -32,8 +32,6 @@ class Controller {
postponedActions.removeAt(0)
}
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(expectException: Boolean = false, c: suspend Controller.() -> String) {
@@ -7,8 +7,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {
@@ -7,8 +7,6 @@ class Controller {
x.resume("OK")
SUSPENDED
}
// INTERCEPT_RESUME_PLACEHOLDER
}
fun builder(c: suspend Controller.() -> Unit) {