Home
last modified time | relevance | path

Searched refs:TestException2 (Results 1 – 20 of 20) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DSupervisorTest.kt15 { it -> it is TestException2 }, in <lambda>()
29 throw TestException2() in <lambda>()
43 { it -> it is TestException2 } in <lambda>()
51 throw TestException2() in <lambda>()
61 { it -> it is TestException2 }) in <lambda>()
72 throw TestException2() in <lambda>()
102 throw TestException2() in <lambda>()
134 … testSupervisorThrowsWithFailingChild() = runTest(unhandled = listOf({e -> e is TestException2})) { in <lambda>()
148 throw TestException2() in <lambda>()
DCancellableResumeTest.kt51 { it is CompletionHandlerException && it.cause is TestException2 }, in <lambda>()
60 throw TestException2("FAIL") // invokeOnCancellation handler fails with exception in <lambda>()
97 { it is CompletionHandlerException && it.cause is TestException2 }, in <lambda>()
107 throw TestException2("FAIL") // invokeOnCancellation handler fails with exception in <lambda>()
169 { it is CompletionHandlerException && it.cause is TestException2 }, in <lambda>()
182 … throw TestException2("FAIL") // invokeOnCancellation handler fails with exception in <lambda>()
240 { it is CompletionHandlerException && it.cause is TestException2 }, in <lambda>()
256 … throw TestException2("FAIL") // invokeOnCancellation handler fails with exception in <lambda>()
DCoroutineScopeTest.kt51 throw TestException2() in <lambda>()
58 } catch (e: TestException2) { in <lambda>()
DAbstractCoroutineTest.kt91 coroutine.resumeWithException(TestException2()) in <lambda>()
DTestBase.common.kt64 public class TestException2(message: String? = null, private val data: Any? = null) : Throwable(mes… class
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DProduceExceptionsTest.kt36 … runTest(unhandled = listOf({ e -> e is TestException && e.suppressed[0] is TestException2 })) { in <lambda>()
44 throw TestException2() in <lambda>()
61 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
68 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
150 job.completeExceptionally(TestException2()) in <lambda>()
165 assertTrue(e.cause?.cause is TestException2) in <lambda>()
DWithContextCancellationStressTest.kt47 throw TestException2() in testConcurrentFailure()
69 is TestException2 -> { in testConcurrentFailure()
105 … assertTrue(suppressed.any { it is TestException2 }, "TestException2 should be present: $this") in Throwable()
DJobExceptionsStressTest.kt39 throw TestException2() in testMultipleChildrenThrows()
52 TestException2::class, in testMultipleChildrenThrows()
DWithContextExceptionHandlingTest.kt31 runCancellation(null, TestException2()) { e -> in <lambda>()
32 assertTrue(e is TestException2) in <lambda>()
47 runCancellation(cancellationCause, TestException2()) { e -> in <lambda>()
48 assertTrue(e is TestException2) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DChannelReceiveOrClosedTest.kt16 channel.close(TestException2()) in <lambda>()
25 assertTrue(closed.closeCause is TestException2) in <lambda>()
110 channel.close(TestException2()) in <lambda>()
121 assertTrue(closeCause.closeCause is TestException2) in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DCompletableTest.kt110 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
117 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
DSingleTest.kt192 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
199 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
DMaybeTest.kt240 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
247 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DCompletableTest.kt110 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
117 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
DSingleTest.kt192 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
199 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
DMaybeTest.kt240 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
247 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/test/
DMonoTest.kt209 throw TestException2() // but parent throws another exception while cleaning up in <lambda>()
216 assertTrue(e.suppressed[0] is TestException2) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DOnCompletionTest.kt90 throw TestException2() in <lambda>()
92 assertTrue(it is TestException2) in <lambda>()
DFlatMapMergeBaseTest.kt49 throw TestException2() in testConcurrentFailure()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/future/
DFutureTest.kt355 launch(start = CoroutineStart.ATOMIC) { throw TestException2("FAIL") } in <lambda>()
358 result.checkFutureException<TestException>(TestException1::class, TestException2::class) in <lambda>()