Skip to content

Commit f94a8aa

Browse files
committed
Move util to test_utils
Signed-off-by: matt-ramotar <[email protected]>
1 parent f9379b2 commit f94a8aa

35 files changed

+84
-84
lines changed

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/ClearAllStoreTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import kotlinx.coroutines.test.TestScope
66
import kotlinx.coroutines.test.advanceUntilIdle
77
import kotlinx.coroutines.test.runTest
88
import org.mobilenativefoundation.store.core5.ExperimentalStoreApi
9-
import org.mobilenativefoundation.store.store5.util.InMemoryPersister
10-
import org.mobilenativefoundation.store.store5.util.asSourceOfTruth
11-
import org.mobilenativefoundation.store.store5.util.getData
9+
import org.mobilenativefoundation.store.store5.test_utils.InMemoryPersister
10+
import org.mobilenativefoundation.store.store5.test_utils.asSourceOfTruth
11+
import org.mobilenativefoundation.store.store5.test_utils.getData
1212
import kotlin.test.BeforeTest
1313
import kotlin.test.Test
1414
import kotlin.test.assertEquals

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/ClearStoreByKeyTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import kotlinx.coroutines.FlowPreview
55
import kotlinx.coroutines.test.TestScope
66
import kotlinx.coroutines.test.runTest
77
import org.mobilenativefoundation.store.store5.StoreReadResponse.Data
8-
import org.mobilenativefoundation.store.store5.util.InMemoryPersister
9-
import org.mobilenativefoundation.store.store5.util.asSourceOfTruth
10-
import org.mobilenativefoundation.store.store5.util.getData
8+
import org.mobilenativefoundation.store.store5.test_utils.InMemoryPersister
9+
import org.mobilenativefoundation.store.store5.test_utils.asSourceOfTruth
10+
import org.mobilenativefoundation.store.store5.test_utils.getData
1111
import kotlin.test.Test
1212
import kotlin.test.assertEquals
1313
import kotlin.test.assertNull

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/FallbackTests.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import kotlinx.coroutines.flow.take
44
import kotlinx.coroutines.flow.toList
55
import kotlinx.coroutines.test.TestScope
66
import kotlinx.coroutines.test.runTest
7-
import org.mobilenativefoundation.store.store5.util.fake.fallback.HardcodedPages
8-
import org.mobilenativefoundation.store.store5.util.fake.fallback.Page
9-
import org.mobilenativefoundation.store.store5.util.fake.fallback.PagesDatabase
10-
import org.mobilenativefoundation.store.store5.util.fake.fallback.PrimaryPagesApi
11-
import org.mobilenativefoundation.store.store5.util.fake.fallback.SecondaryPagesApi
7+
import org.mobilenativefoundation.store.store5.test_utils.fake.fallback.HardcodedPages
8+
import org.mobilenativefoundation.store.store5.test_utils.fake.fallback.Page
9+
import org.mobilenativefoundation.store.store5.test_utils.fake.fallback.PagesDatabase
10+
import org.mobilenativefoundation.store.store5.test_utils.fake.fallback.PrimaryPagesApi
11+
import org.mobilenativefoundation.store.store5.test_utils.fake.fallback.SecondaryPagesApi
1212
import kotlin.test.BeforeTest
1313
import kotlin.test.Test
1414
import kotlin.test.assertEquals

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/FetcherResponseTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import kotlinx.coroutines.flow.map
77
import kotlinx.coroutines.flow.toList
88
import kotlinx.coroutines.test.TestScope
99
import kotlinx.coroutines.test.runTest
10-
import org.mobilenativefoundation.store.store5.util.assertEmitsExactly
10+
import org.mobilenativefoundation.store.store5.test_utils.assertEmitsExactly
1111
import kotlin.test.Test
1212
import kotlin.test.assertEquals
1313
import kotlin.test.assertFailsWith

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/FlowStoreTests.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ import kotlinx.coroutines.test.runTest
3434
import org.mobilenativefoundation.store.store5.StoreReadResponse.Data
3535
import org.mobilenativefoundation.store.store5.StoreReadResponse.Loading
3636
import org.mobilenativefoundation.store.store5.impl.extensions.fresh
37-
import org.mobilenativefoundation.store.store5.util.FakeFetcher
38-
import org.mobilenativefoundation.store.store5.util.FakeFlowingFetcher
39-
import org.mobilenativefoundation.store.store5.util.InMemoryPersister
40-
import org.mobilenativefoundation.store.store5.util.asFlowable
41-
import org.mobilenativefoundation.store.store5.util.asSourceOfTruth
42-
import org.mobilenativefoundation.store.store5.util.assertEmitsExactly
37+
import org.mobilenativefoundation.store.store5.test_utils.FakeFetcher
38+
import org.mobilenativefoundation.store.store5.test_utils.FakeFlowingFetcher
39+
import org.mobilenativefoundation.store.store5.test_utils.InMemoryPersister
40+
import org.mobilenativefoundation.store.store5.test_utils.asFlowable
41+
import org.mobilenativefoundation.store.store5.test_utils.asSourceOfTruth
42+
import org.mobilenativefoundation.store.store5.test_utils.assertEmitsExactly
4343
import kotlin.test.Test
4444
import kotlin.test.assertContains
4545
import kotlin.test.assertEquals

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/HotFlowStoreTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import kotlinx.coroutines.flow.Flow
66
import kotlinx.coroutines.flow.flowOf
77
import kotlinx.coroutines.test.TestScope
88
import kotlinx.coroutines.test.runTest
9-
import org.mobilenativefoundation.store.store5.util.assertEmitsExactly
9+
import org.mobilenativefoundation.store.store5.test_utils.assertEmitsExactly
1010
import kotlin.test.Test
1111
import kotlin.test.assertEquals
1212

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/KeyTrackerTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import kotlinx.coroutines.launch
1010
import kotlinx.coroutines.test.TestScope
1111
import kotlinx.coroutines.test.advanceUntilIdle
1212
import kotlinx.coroutines.test.runTest
13-
import org.mobilenativefoundation.store.store5.util.KeyTracker
13+
import org.mobilenativefoundation.store.store5.test_utils.KeyTracker
1414
import kotlin.test.Test
1515
import kotlin.test.assertEquals
1616

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/LocalOnlyTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import kotlinx.coroutines.flow.first
55
import kotlinx.coroutines.test.TestScope
66
import kotlinx.coroutines.test.runTest
77
import org.mobilenativefoundation.store.store5.impl.extensions.get
8-
import org.mobilenativefoundation.store.store5.util.InMemoryPersister
9-
import org.mobilenativefoundation.store.store5.util.asSourceOfTruth
8+
import org.mobilenativefoundation.store.store5.test_utils.InMemoryPersister
9+
import org.mobilenativefoundation.store.store5.test_utils.asSourceOfTruth
1010
import kotlin.test.Test
1111
import kotlin.test.assertEquals
1212
import kotlin.test.assertTrue

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/MapIndexedTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import kotlinx.coroutines.flow.flowOf
55
import kotlinx.coroutines.test.TestScope
66
import kotlinx.coroutines.test.runTest
77
import org.mobilenativefoundation.store.store5.impl.operators.mapIndexed
8-
import org.mobilenativefoundation.store.store5.util.assertEmitsExactly
8+
import org.mobilenativefoundation.store.store5.test_utils.assertEmitsExactly
99
import kotlin.test.Test
1010

1111
@OptIn(ExperimentalCoroutinesApi::class)

store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/SourceOfTruthErrorsTests.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import kotlinx.coroutines.test.TestScope
1212
import kotlinx.coroutines.test.runTest
1313
import org.mobilenativefoundation.store.store5.SourceOfTruth.ReadException
1414
import org.mobilenativefoundation.store.store5.SourceOfTruth.WriteException
15-
import org.mobilenativefoundation.store.store5.util.FakeFetcher
16-
import org.mobilenativefoundation.store.store5.util.InMemoryPersister
17-
import org.mobilenativefoundation.store.store5.util.asSourceOfTruth
18-
import org.mobilenativefoundation.store.store5.util.assertEmitsExactly
15+
import org.mobilenativefoundation.store.store5.test_utils.FakeFetcher
16+
import org.mobilenativefoundation.store.store5.test_utils.InMemoryPersister
17+
import org.mobilenativefoundation.store.store5.test_utils.asSourceOfTruth
18+
import org.mobilenativefoundation.store.store5.test_utils.assertEmitsExactly
1919
import kotlin.test.Test
2020

2121
@OptIn(ExperimentalCoroutinesApi::class)

0 commit comments

Comments
 (0)