Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class CachingTest {
* invalidations create new PagingData BUT a new collector only sees the latest one.
*/
@Test
public fun unusedPagingDataIsNeverCollectedByNewDownstream(): Unit = testScope.runTest {
public fun unusedPagingDataIsNeverCollectedByNewDownstream() = testScope.runTest {
val factory = StringPagingSource.VersionedFactory()
val flow = buildPageFlow(factory).cachedIn(backgroundScope, tracker)
val collector = ItemCollector(flow)
Expand Down Expand Up @@ -517,7 +517,7 @@ class CachingTest {
}

@Test
public fun unusedPagingDataIsNeverCached(): Unit = testScope.runTest {
public fun unusedPagingDataIsNeverCached() = testScope.runTest {
val factory = StringPagingSource.VersionedFactory()
val flow = buildPageFlow(factory).cachedIn(backgroundScope, tracker)
val collector = ItemCollector(flow)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class PositionalDataSourceTest {
private val testScope = TestScope(UnconfinedTestDispatcher())

@OptIn(ExperimentalCoroutinesApi::class)
private fun verifyRefreshIsTerminal(counted: Boolean): Unit = testScope.runTest {
private fun verifyRefreshIsTerminal(counted: Boolean) = testScope.runTest {
val dataSource = ListDataSource(list = listOf(0, 1, 2), counted = counted)
dataSource.load(
DataSource.Params(
Expand Down