1 package kotlinx.coroutines.test 2 3 import kotlinx.coroutines.* 4 import kotlinx.coroutines.debug.internal.* 5 6 @Suppress("ACTUAL_WITHOUT_EXPECT") 7 public actual typealias TestResult = Unit 8 createTestResultnull9internal actual fun createTestResult(testProcedure: suspend CoroutineScope.() -> Unit) { 10 runBlocking { 11 testProcedure() 12 } 13 } 14 systemPropertyImplnull15internal actual fun systemPropertyImpl(name: String): String? = 16 try { 17 System.getProperty(name) 18 } catch (e: SecurityException) { 19 null 20 } 21 dumpCoroutinesnull22internal actual fun dumpCoroutines() { 23 @Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") 24 if (DebugProbesImpl.isInstalled) { 25 DebugProbesImpl.install() 26 try { 27 DebugProbesImpl.dumpCoroutines(System.err) 28 System.err.flush() 29 } finally { 30 DebugProbesImpl.uninstall() 31 } 32 } 33 } 34