• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines.test
6 
7 import kotlin.test.*
8 
testResultChainnull9 actual fun testResultChain(block: () -> TestResult, after: (Result<Unit>) -> TestResult): TestResult =
10     block().then(
11         {
12             after(Result.success(Unit))
13         }, {
14             after(Result.failure(it))
15         })
16 
17 actual typealias NoJs = Ignore
18