Skip to content

Commit

Permalink
Suppress NotDispatcherProvider rule in DispatcherProvider
Browse files Browse the repository at this point in the history
COAND-1020
  • Loading branch information
OscarSpruit committed Nov 14, 2024
1 parent deedfaf commit 454a597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainCoroutineDispatcher

@Suppress("NotDispatcherProvider")
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
object DispatcherProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.junit.jupiter.api.extension.ExtensionContext
* JUnit 5 extension that replaces [Dispatchers.Main] with a test dispatcher. This gives control over how the dispatcher
* executes it's work.
*/
@Suppress("NotDispatcherProvider")
@OptIn(ExperimentalCoroutinesApi::class)
class TestDispatcherExtension : BeforeEachCallback, AfterEachCallback {

Expand Down

0 comments on commit 454a597

Please sign in to comment.