1 package kotlinx.coroutines.test 2 testResultChainnull3 actual fun testResultChain(block: () -> TestResult, after: (Result<Unit>) -> TestResult): TestResult { 4 try { 5 block() 6 after(Result.success(Unit)) 7 } catch (e: Throwable) { 8 after(Result.failure(e)) 9 } 10 } 11