File tree 2 files changed +34
-6
lines changed
2 files changed +34
-6
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,12 @@ def commonKoverExcludes =
260
260
" kotlinx.coroutines.scheduling.ExperimentalCoroutineDispatcher" // Deprecated
261
261
]
262
262
263
- tasks . koverHtmlReport {
264
- excludes = commonKoverExcludes
265
- }
266
-
267
- tasks . koverVerify {
268
- excludes = commonKoverExcludes
263
+ kover {
264
+ filters {
265
+ classes {
266
+ excludes . addAll(commonKoverExcludes)
267
+ }
268
+ }
269
269
}
270
270
271
271
task testsJar (type : Jar , dependsOn : jvmTestClasses) {
Original file line number Diff line number Diff line change @@ -90,6 +90,34 @@ class SelectOldTest : TestBase() {
90
90
finish(8 )
91
91
}
92
92
93
+ @Test
94
+ fun testSelectUnbiasedComplete () = runTest {
95
+ expect(1 )
96
+ val job = Job ()
97
+ job.complete()
98
+ expect(2 )
99
+ val res = selectUnbiasedOld<String > {
100
+ job.onJoin {
101
+ expect(3 )
102
+ " OK"
103
+ }
104
+ }
105
+ assertEquals(" OK" , res)
106
+ finish(4 )
107
+ }
108
+
109
+ @Test
110
+ fun testSelectUnbiasedThrows () = runTest {
111
+ try {
112
+ select<Unit > {
113
+ expect(1 )
114
+ throw TestException ()
115
+ }
116
+ } catch (e: TestException ) {
117
+ finish(2 )
118
+ }
119
+ }
120
+
93
121
@Test
94
122
fun testSelectLazy () = runTest {
95
123
expect(1 )
You can’t perform that action at this time.
0 commit comments