You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlinx-coroutines-test/api/kotlinx-coroutines-test.api
+5-4
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,16 @@ public final class kotlinx/coroutines/test/TestCoroutineDispatcher : kotlinx/cor
34
34
public fun toString ()Ljava/lang/String;
35
35
}
36
36
37
-
public final class kotlinx/coroutines/test/TestCoroutineExceptionHandler : kotlin/coroutines/AbstractCoroutineContextElement, kotlinx/coroutines/CoroutineExceptionHandler, kotlinx/coroutines/test/UncaughtExceptionCaptor {
37
+
public final class kotlinx/coroutines/test/TestCoroutineExceptionHandler : kotlin/coroutines/AbstractCoroutineContextElement, kotlinx/coroutines/CoroutineExceptionHandler {
38
38
public fun <init> ()V
39
-
public fun cleanupTestCoroutinesCaptor ()V
40
-
public fun getUncaughtExceptions ()Ljava/util/List;
39
+
public final fun cleanupTestCoroutinesCaptor ()V
40
+
public final fun getUncaughtExceptions ()Ljava/util/List;
41
41
public fun handleException (Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
42
42
}
43
43
44
-
public abstract interface class kotlinx/coroutines/test/TestCoroutineScope : kotlinx/coroutines/CoroutineScope, kotlinx/coroutines/test/DelayController, kotlinx/coroutines/test/UncaughtExceptionCaptor {
44
+
public abstract interface class kotlinx/coroutines/test/TestCoroutineScope : kotlinx/coroutines/CoroutineScope, kotlinx/coroutines/test/DelayController {
45
45
public abstract fun cleanupTestCoroutines ()V
46
+
public abstract fun getUncaughtExceptions ()Ljava/util/List;
46
47
}
47
48
48
49
public final class kotlinx/coroutines/test/TestCoroutineScopeKt {
Copy file name to clipboardExpand all lines: kotlinx-coroutines-test/common/src/TestCoroutineExceptionHandler.kt
+14-8
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ import kotlin.coroutines.*
11
11
/**
12
12
* Access uncaught coroutine exceptions captured during test execution.
13
13
*/
14
-
@ExperimentalCoroutinesApi // Since 1.2.1, tentatively till 1.3.0
14
+
@Deprecated("Consider whether a plain `CoroutineExceptionHandler` would suffice. If not, please report your use case at https://github.com/Kotlin/kotlinx.coroutines/issues.", level =DeprecationLevel.ERROR)
15
15
publicinterfaceUncaughtExceptionCaptor {
16
16
/**
17
17
* List of uncaught coroutine exceptions.
@@ -34,28 +34,34 @@ public interface UncaughtExceptionCaptor {
34
34
35
35
/**
36
36
* An exception handler that captures uncaught exceptions in tests.
37
+
*
38
+
* In order to work as intended, this exception handler requires that the [Job] of the test coroutine scope is a
39
+
* [SupervisorJob].
37
40
*/
38
-
@ExperimentalCoroutinesApi // Since 1.2.1, tentatively till 1.3.0
0 commit comments