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
-6
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,6 @@ public final class kotlinx/coroutines/test/TestCoroutineScheduler$Key : kotlin/c
69
69
public abstract interface class kotlinx/coroutines/test/TestCoroutineScope : kotlinx/coroutines/CoroutineScope {
70
70
public abstract fun cleanupTestCoroutines ()V
71
71
public abstract fun getTestScheduler ()Lkotlinx/coroutines/test/TestCoroutineScheduler;
72
-
public abstract fun reportException (Ljava/lang/Throwable;)V
73
72
}
74
73
75
74
public final class kotlinx/coroutines/test/TestCoroutineScopeKt {
@@ -99,11 +98,6 @@ public final class kotlinx/coroutines/test/TestDispatchers {
99
98
public static final fun setMain (Lkotlinx/coroutines/Dispatchers;Lkotlinx/coroutines/CoroutineDispatcher;)V
100
99
}
101
100
102
-
public final class kotlinx/coroutines/test/TestExceptionHandlerKt {
103
-
public static final fun TestExceptionHandler (Lkotlinx/coroutines/test/TestCoroutineScope;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/CoroutineExceptionHandler;
104
-
public static synthetic fun TestExceptionHandler$default (Lkotlinx/coroutines/test/TestCoroutineScope;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/CoroutineExceptionHandler;
105
-
}
106
-
107
101
public abstract interface class kotlinx/coroutines/test/UncaughtExceptionCaptor {
108
102
public abstract fun cleanupTestCoroutines ()V
109
103
public abstract fun getUncaughtExceptions ()Ljava/util/List;
Copy file name to clipboardExpand all lines: kotlinx-coroutines-test/common/src/TestCoroutineExceptionHandler.kt
+8-6
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ import kotlin.coroutines.*
12
12
* Access uncaught coroutine exceptions captured during test execution.
13
13
*/
14
14
@Deprecated(
15
-
"Consider whether a `TestExceptionHandler` would work instead. If not, please report your use case at https://github.com/Kotlin/kotlinx.coroutines/issues.",
15
+
"Consider whether the default mechanism of handling uncaught exceptions is sufficient. "+
16
+
"If not, try writing your own `CoroutineExceptionHandler` and "+
17
+
"please report your use case at https://github.com/Kotlin/kotlinx.coroutines/issues.",
16
18
level =DeprecationLevel.WARNING
17
19
)
18
20
publicinterfaceUncaughtExceptionCaptor {
@@ -38,12 +40,12 @@ public interface UncaughtExceptionCaptor {
38
40
/**
39
41
* An exception handler that captures uncaught exceptions in tests.
40
42
*/
41
-
@Deprecated("You can use `TestExceptionHandler` to define an exception handler that is linked to "+
42
-
"a `TestCoroutineScope`, or define your own `CoroutineExceptionHandler` if you just need to handle uncaught "+
43
-
"exceptions without a special `TestCoroutineScope` integration.", level =DeprecationLevel.WARNING)
43
+
@Deprecated(
44
+
"It's better to define one's own `CoroutineExceptionHandler` if you just need to handle '"+
45
+
"uncaught exceptions without a special `TestCoroutineScope` integration.", level =DeprecationLevel.WARNING
0 commit comments