forked from fastluca/JRis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Increase code coverage (#284)
- Loading branch information
Showing
2 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
subprojects/kris-io/src/test/kotlin/ch/difty/kris/DeafultDispatchProviderTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ch.difty.kris | ||
|
||
import io.kotest.matchers.shouldBe | ||
import kotlinx.coroutines.Dispatchers | ||
import org.junit.jupiter.api.Test | ||
|
||
internal class DeafultDispatchProviderTest { | ||
|
||
private val sut = DefaultDispatcherProvider | ||
|
||
@Test | ||
internal fun defaultProviderShouldBeDefault() { | ||
sut.default shouldBe Dispatchers.Default | ||
} | ||
|
||
@Test | ||
internal fun mainProviderShouldBeMain() { | ||
sut.main shouldBe Dispatchers.Main | ||
} | ||
|
||
@Test | ||
internal fun unconfinedProviderShouldBeUnconfined() { | ||
sut.unconfined shouldBe Dispatchers.Unconfined | ||
} | ||
|
||
@Test | ||
internal fun ioProviderShouldBeIo() { | ||
sut.io shouldBe Dispatchers.IO | ||
} | ||
} |