1 /* 2 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 package kotlinx.coroutines.test 5 6 import kotlin.test.* 7 testResultChainnull8actual fun testResultChain(block: () -> TestResult, after: (Result<Unit>) -> TestResult): TestResult { 9 try { 10 block() 11 after(Result.success(Unit)) 12 } catch (e: Throwable) { 13 after(Result.failure(e)) 14 } 15 } 16 17 actual typealias NoNative = Ignore 18