db: cover downloaded paging invalidation and filters

Add tests for the downloaded artist and playlist paging sources now that
their observed entities are hand-picked, and assert the downloaded
search/starred filters directly. The downloaded artist plan test uses the
real select list and documents the computed album count's in-memory sort,
which the hand-written query also had.
This commit is contained in:
austinried
2026-11-03 01:03:45 +00:00
parent 8d6f7e2341
commit 18c24ca566
2 changed files with 173 additions and 10 deletions
@@ -219,8 +219,9 @@ internal fun rawQuery(
index++
}
}
val values = names.map(bindings::getValue)
return RoomRawQuery(positional) { statement ->
names.forEachIndexed { index, name -> statement.bind(index + 1, bindings.getValue(name)) }
values.forEachIndexed { index, value -> statement.bind(index + 1, value) }
}
}