Move helpers for coroutine tests in separate package

It will help to skip their content when rendering bytecode listing
for box tests
This commit is contained in:
Denis Zharkov
2017-05-03 11:35:09 +03:00
parent 035fcc2424
commit d92c403f9e
141 changed files with 155 additions and 9 deletions
@@ -685,6 +685,7 @@ public class KotlinTestUtils {
M supportModule = hasModules ? factory.createModule("support", Collections.emptyList(), Collections.emptyList()) : null;
testFiles.add(factory.createFile(supportModule,
"CoroutineUtil.kt",
"package helpers\n" +
"import kotlin.coroutines.experimental.*\n" +
"fun <T> handleResultContinuation(x: (T) -> Unit): Continuation<T> = object: Continuation<T> {\n" +
" override val context = EmptyCoroutineContext\n" +