test(coverage): lane 4 — ViewModels & non-UI modules to >=95% #249

Closed
opened 2026-07-03 17:57:52 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-03 17:57:52 +00:00 (Migrated from github.com)

Strangler lane 4 of 6 (coverage → >95%; see lane 1). Depends on #192 / PR #241.

Scope: all ui/** ViewModels + UI state holders, plus the non-UI logic modules reporting/**, push/**, power/**, contacts/**.

Test approach: JVM unit — coroutines-test, Turbine, MockK, and the existing fakes (FakeAccountRepository, etc.). Drive each ViewModel's state transitions (loading/empty/error/content), events, and edge cases; cover the module logic classes directly.

Target: ≥95% for the packages in scope; then ratchet the floor.

**Strangler lane 4 of 6** (coverage → >95%; see lane 1). Depends on #192 / PR #241. **Scope:** all `ui/**` ViewModels + UI state holders, plus the non-UI logic modules `reporting/**`, `push/**`, `power/**`, `contacts/**`. **Test approach:** JVM unit — coroutines-test, Turbine, MockK, and the existing fakes (`FakeAccountRepository`, etc.). Drive each ViewModel's state transitions (loading/empty/error/content), events, and edge cases; cover the module logic classes directly. **Target:** ≥95% for the packages in scope; then ratchet the floor.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#249