Skip to content

Commit 187d276

Browse files
committed
πŸ’š fix tests
1 parent be312f7 commit 187d276

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/libdetail/LibraryDetailViewModel.kt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.theapache64.stackzy.util.R
1414
import kotlinx.coroutines.CoroutineScope
1515
import kotlinx.coroutines.flow.MutableStateFlow
1616
import kotlinx.coroutines.flow.asStateFlow
17+
import kotlinx.coroutines.flow.collect
1718
import kotlinx.coroutines.launch
1819
import javax.inject.Inject
1920

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/liblist/LibraryListViewModel.kt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.theapache64.stackzy.ui.util.getSingularOrPlural
1010
import kotlinx.coroutines.CoroutineScope
1111
import kotlinx.coroutines.flow.MutableStateFlow
1212
import kotlinx.coroutines.flow.StateFlow
13+
import kotlinx.coroutines.flow.collect
1314
import kotlinx.coroutines.launch
1415
import java.util.*
1516
import javax.inject.Inject

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/splash/SplashViewModel.kt

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import kotlinx.coroutines.CoroutineScope
1212
import kotlinx.coroutines.flow.MutableStateFlow
1313
import kotlinx.coroutines.flow.StateFlow
1414
import kotlinx.coroutines.launch
15+
import kotlinx.coroutines.flow.collect
1516
import java.io.IOException
1617
import javax.inject.Inject
1718

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/AuthRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.toxicbakery.logging.Arbor
99
import it.cosenonjaviste.daggermock.InjectFromComponent
1010
import org.junit.Rule
1111
import org.junit.Test
12+
import kotlinx.coroutines.flow.collect
1213

1314

1415
class AuthRepoTest {

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/ConfigRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.toxicbakery.logging.Arbor
88
import it.cosenonjaviste.daggermock.InjectFromComponent
99
import org.junit.Rule
1010
import org.junit.Test
11+
import kotlinx.coroutines.flow.collect
1112

1213

1314
class ConfigRepoTest {

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/LibrariesRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.theapache64.stackzy.test.runBlockingUnitTest
77
import it.cosenonjaviste.daggermock.InjectFromComponent
88
import org.junit.Rule
99
import org.junit.Test
10+
import kotlinx.coroutines.flow.collect
1011

1112
internal class LibrariesRepoTest {
1213

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/PlayStoreRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.junit.Rule
1212
import org.junit.Test
1313
import org.junit.jupiter.api.BeforeAll
1414
import org.junit.jupiter.api.TestInstance
15+
import kotlinx.coroutines.flow.collect
1516

1617
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
1718
class PlayStoreRepoTest {

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/ResultsRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import org.junit.Rule
1717
import org.junit.Test
1818
import org.junit.jupiter.api.BeforeAll
1919
import kotlin.io.path.createTempDirectory
20+
import kotlinx.coroutines.flow.collect
2021

2122
class ResultsRepoTest {
2223

β€Žsrc/test/kotlin/com/theapache64/stackzy/data/repo/UntrackedLibsRepoTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.theapache64.stackzy.test.runBlockingUnitTest
88
import it.cosenonjaviste.daggermock.InjectFromComponent
99
import org.junit.Rule
1010
import org.junit.Test
11+
import kotlinx.coroutines.flow.collect
1112

1213
internal class UntrackedLibsRepoTest {
1314

β€Žsrc/test/kotlin/com/theapache64/stackzy/util/LibrariesRepoExt.kt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.theapache64.stackzy.data.remote.Library
44
import com.theapache64.stackzy.data.repo.LibrariesRepo
55
import com.theapache64.stackzy.data.util.calladapter.flow.Resource
66
import com.toxicbakery.logging.Arbor
7+
import kotlinx.coroutines.flow.collect
78

89
suspend fun LibrariesRepo.loadLibs(onLibsLoaded: suspend (List<Library>) -> Unit) {
910
getRemoteLibraries().collect {

0 commit comments

Comments
Β (0)