test(coverage): lane 3 — persistence, DAOs & migrations to >=95% #270

Merged
JMR-dev merged 5 commits from test-248-coverage-persistence-daos-migrations into main 2026-07-04 00:47:09 +00:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit be89bcc6d9 - Show all commits
@@ -147,7 +147,7 @@ class DatabaseEncryptionTest {
} finally {
encrypted.close()
}
assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 18, version)
assertEquals("Room's schema version must survive the plaintext -> encrypted conversion", 19, version)
}
private fun openPlaintext(): LibreMailDatabase =
@@ -76,6 +76,13 @@ class MessageDaoTest {
inInbox = inInbox,
bodyFetched = bodyFetched,
uid = uid,
// Mirror production's Unicode-casefold population (issue #232): Mappers.toEntity + MessageDao's
// updateHeaderContent/updateBody write `lowercase()` copies of the searchable fields, and the
// *SearchSummaries queries match against these `*Fold` columns — so fixtures must set them too.
senderFold = sender.lowercase(),
senderEmailFold = senderEmail.lowercase(),
subjectFold = subject.lowercase(),
snippetFold = snippet.lowercase(),
)
/** Refreshes a [PagingSource] and returns the first loaded page's ids in order. */