Home
last modified time | relevance | path

Searched refs:exceptionOrNull (Results 1 – 25 of 38) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DStackTraceRecoveryCustomExceptionsTest.kt82 val ex = result.exceptionOrNull() ?: error("Expected to fail") in <lambda>()
94 val ex = result.exceptionOrNull() ?: error("Expected to fail") in <lambda>()
117 }.exceptionOrNull() ?: error("Expected to fail") in <lambda>()
140 val ex = result.exceptionOrNull() ?: error("Expected to fail") in <lambda>()
160 assertSame(e, result.exceptionOrNull()) in <lambda>()
DStackTraceRecoverySelectTest.kt20 verifyStackTrace("select/${name.methodName}", result.exceptionOrNull()!!) in testSelectJoin()
40 verifyStackTrace("select/${name.methodName}", result.exceptionOrNull()!!) in <lambda>()
57 verifyStackTrace("select/${name.methodName}", result.exceptionOrNull()!!) in <lambda>()
DStackTraceRecoveryTest.kt216 exception = it.exceptionOrNull() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/channels/
DChannel.kt349 throw recoverStackTrace(result.exceptionOrNull() ?: return false) in send()
743 throw recoverStackTrace(result.exceptionOrNull() ?: return null) in receive()
942 public fun exceptionOrNull(): Throwable? = (holder as? Closed)?.cause in receiveOrNull() method
996 return if (holder is ChannelResult.Failed) onFailure(exceptionOrNull()) else holder as T in getOrElse()
1028 if (holder is ChannelResult.Failed) action(exceptionOrNull()) in onFailure()
1049 if (holder is ChannelResult.Closed) action(exceptionOrNull()) in onClosed()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DChannelReceiveCatchingTest.kt23 assertIs<TestException2>(closed.exceptionOrNull()) in <lambda>()
66 assertNull(closed2.exceptionOrNull()) in <lambda>()
124 assertIs<TestException1>(closeCauseResult.getOrThrow().exceptionOrNull()) in <lambda>()
129 assertIs<TestException2>(closeCause.exceptionOrNull()) in <lambda>()
DBasicOperationsTest.kt148 assertNull(closed.exceptionOrNull()) in <lambda>()
149 assertTrue(ChannelResult.closed<Int>(closed.exceptionOrNull()) == closed) in <lambda>()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DEventMod.java80 public long exceptionOrNull; field in EventMod
114 exceptionOrNull = -1; in EventMod()
DEventBuilder.java128 mod.exceptionOrNull = exceptionClassID; in setExceptionOnly()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/selects/
DSelectBufferedChannelTest.kt297 assertNull(it.exceptionOrNull()) in <lambda>()
318 assertIs<TestException>(it.exceptionOrNull()) in <lambda>()
393 assertNull(it.exceptionOrNull()) in <lambda>()
DSelectRendezvousChannelTest.kt319 assertNull(it.exceptionOrNull()) in <lambda>()
340 assertIs<TestException>(it.exceptionOrNull()) in <lambda>()
356 assertNull(it.exceptionOrNull()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/concurrent/src/channels/
DChannels.kt41 else ChannelResult.closed(r.exceptionOrNull()) in trySendBlocking()
/external/kotlinx.serialization/formats/cbor/jvmTest/src/kotlinx/serialization/cbor/
DCborStacktraceRecoveryTest.kt23 val e = result.exceptionOrNull()!! in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/internal/
DTestMainDispatcherJvm.kt23 }.exceptionOrNull()) // can not be null, but it does not matter. in createDispatcher()
/external/kotlinx.serialization/formats/json-tests/jvmTest/src/kotlinx/serialization/
DStacktraceRecoveryTest.kt46 val e = result.exceptionOrNull()!! in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DJobTest.kt106 assertIs<CompletionHandlerException>(cancelResult.exceptionOrNull()) in <lambda>()
107 assertIs<TestException>(cancelResult.exceptionOrNull()!!.cause) in <lambda>()
DJobExtensionsTest.kt78 val exception = result.exceptionOrNull() ?: fail() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/
DFlowInvariantsTest.kt17 val r1 = runCatching { testBody { flow(it) } }.exceptionOrNull() in <lambda>()
21 val r2 = runCatching { testBody { abstractFlow(it) } }.exceptionOrNull() in <lambda>()
/external/kotlinx.serialization/formats/json-tests/jsTest/src/kotlinx/serialization/json/
DDynamicToLongTest.kt25 parsed.onFailure { assertSame(expectedResult.exceptionOrNull()!!::class, it::class) } in test()
/external/kotlinx.coroutines/integration-testing/src/mavenTest/kotlin/
DMavenPublicationAtomicfuValidator.kt18 assertTrue(result.exceptionOrNull() is ClassNotFoundException) in testNoAtomicfuInClasspath()
/external/ksp/test-utils/src/main/kotlin/com/google/devtools/ksp/processor/
DAsMemberOfProcessor.kt153 result.exceptionOrNull()!!.toSignature() in <lambda>()
171 result.exceptionOrNull()!!.toSignature() in <lambda>()
/external/android_onboarding/java/com/android/onboarding/testing/
DErrorSubject.kt32 val error = runCatching(actual).exceptionOrNull() in failsWith()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DObservableExceptionHandlingTest.kt87 val exception = result.exceptionOrNull() in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DObservableExceptionHandlingTest.kt87 val exception = result.exceptionOrNull() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DTestScopeTest.kt519 when (val exception = it.exceptionOrNull()) { in <lambda>()
545 assertEquals(thrown, it.exceptionOrNull()) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DActorTest.kt73 assertNull(next.exceptionOrNull()) in <lambda>()

12