From the Phase-2 JaCoCo audit — the cleanly JVM-testable classes below 95% line. All close with plain unit tests (mockk the DAO/collaborator); several EXTEND an existing test. No emulator.
data/attachment/AttachmentUriGrants (5.3%, 18) — releaseUnreferenced/referencedUris with mockk<DraftDao>/<OutboxDao> + mockk<Context> (JVM mockk<Context> is fine — the no-mockk-Context rule is instrumented-only).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
From the Phase-2 JaCoCo audit — the cleanly JVM-testable classes below 95% line. All close with plain unit tests (mockk the DAO/collaborator); several EXTEND an existing test. No emulator.
DAO-backed repos:
data/settings/AccountSettingsRepository(38.5%, 16) — add sibling setters (setSignatureEnabled/NotificationsEnabled/RetentionCount/RetentionMonths) +observeFlow (Turbine); extendAccountSettingsRepositoryTest.data/settings/SignatureRepository(63.2%, 7) —observeForAccount/get/getDefault/update/toDomain; extendSignatureRepositoryTest.data/security/CredentialStore(0%, 10) — new test,mockk<KeystoreCrypto>(identity) +mockk<CredentialDao>.Guard + attachment:
data/security/EncryptedCacheGuard(0%, 7) —isCacheLocked()truth table; mockkSettingsRepository+PassphraseSession.data/attachment/AttachmentUriGrants(5.3%, 18) —releaseUnreferenced/referencedUriswithmockk<DraftDao>/<OutboxDao>+mockk<Context>(JVMmockk<Context>is fine — the no-mockk-Context rule is instrumented-only).Near-threshold extensions:
data/sync/SyncScheduler(90.2%, 5) —schedulePeriodicReportPurge+PERIODIC_POLICY; extendSyncSchedulerTest.ui/lock/AppLockViewModel(92.8%, 8) —getNonce,onBackgroundbranch,unwrapSealedPassphrase,awaitSyncEnqueue; extendAppLockViewModelTest.mail/SmtpSender(91.8%, 6) —senderror path +bodyPartbranch; extend GreenMailSmtpSenderTest.ui/reporting/StartupReportViewModel(93.3%, 1) — init lambda.Validate with
:app:testDebugUnitTest+:app:jacocoTestReport(confirm each climbs to ≥95%). No emulator.