Home
last modified time | relevance | path

Searched refs:TestCancellationException (Results 1 – 14 of 14) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DWithContextExceptionHandlingTest.kt46 val cancellationCause = TestCancellationException() in <lambda>()
62 val cancellationCause = TestCancellationException() in <lambda>()
64 assertTrue(e is TestCancellationException) in <lambda>()
78 val cancellationCause = TestCancellationException() in <lambda>()
111 val cancellationCause = TestCancellationException() in <lambda>()
127 val cancellationCause = TestCancellationException() in <lambda>()
143 val cancellationCause = TestCancellationException() in <lambda>()
144 val thrown = TestCancellationException() in <lambda>()
154 val thrown = TestCancellationException() in <lambda>()
163 val thrown = TestCancellationException() in <lambda>()
[all …]
DProduceExceptionsTest.kt101 channel!!.cancel(TestCancellationException()) in <lambda>()
105 } catch (e: TestCancellationException) { in <lambda>()
115 } catch (e: TestCancellationException) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DCancellableResumeTest.kt157 job.cancel(TestCancellationException()) in <lambda>()
161 assertTrue(cause is TestCancellationException) in <lambda>()
192 job.cancel(TestCancellationException()) in <lambda>()
196 assertTrue(cause is TestCancellationException) in <lambda>()
215 assertTrue(cause is TestCancellationException) in <lambda>()
228 assertTrue(cause is TestCancellationException) in <lambda>()
231 job.cancel(TestCancellationException()) // cancel while execution is dispatched in <lambda>()
255 assertTrue(cause is TestCancellationException) in <lambda>()
269 assertTrue(cause is TestCancellationException) in <lambda>()
273 job.cancel(TestCancellationException()) // cancel while execution is dispatched in <lambda>()
DNonCancellableTest.kt59 deferred.cancel(TestCancellationException("TEST")) in <lambda>()
65 } catch (e: TestCancellationException) { in <lambda>()
DAsyncTest.kt62 d.cancel(TestCancellationException("TEST")) in <lambda>()
65 } catch (e: TestCancellationException) { in <lambda>()
DTestBase.common.kt66 public class TestCancellationException(message: String? = null, private val data: Any? = null) : Ca… class
DCoroutinesTest.kt328 d.cancel(TestCancellationException()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DProduceTest.kt69 check(e is TestCancellationException) in <lambda>()
77 c.cancel(TestCancellationException()) in <lambda>()
81 } catch (e: TestCancellationException) { in <lambda>()
DLinkedListChannelTest.kt38 fun testCancelWithCause() = runTest({ it is TestCancellationException }) { in <lambda>()
40 channel.cancel(TestCancellationException())
DConflatedChannelTest.kt90 fun testCancelWithCause() = runTest({ it is TestCancellationException }) { in <lambda>()
92 channel.cancel(TestCancellationException())
DArrayChannelTest.kt142 fun testCancelWithCause() = runTest({ it is TestCancellationException }) { in <lambda>()
144 channel.cancel(TestCancellationException())
DArrayBroadcastChannelTest.kt195 fun testCancelWithCause() = runTest({ it is TestCancellationException }) { in <lambda>()
198 subscription.cancel(TestCancellationException())
DRendezvousChannelTest.kt274 fun testCancelWithCause() = runTest({ it is TestCancellationException }) { in <lambda>()
276 channel.cancel(TestCancellationException())
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt46 fun testAwaitWithCancellation() = runTest(expected = {it is TestCancellationException}) { in <lambda>()
54 deferred.cancel(TestCancellationException()) in <lambda>()