Open valiantwarrior opened 2 years ago
Case 1 val testCoroutineScope = TestScope() ... testCoroutineScope.launch { // do something }
Case 2 runTest { // do something }
Migration to the new kotlinx-coroutines-test API https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-test/MIGRATION.md
TestScope() https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-scope.html
TestScope https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-scope/index.html
Case 1 val testCoroutineScope = TestScope() ... testCoroutineScope.launch { // do something }
Case 2 runTest { // do something }