test(coverage): lane 1 — repository, mappers & domain logic to >=95% #246

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

Strangler lane 1 of 6 in the push to raise coverage to >95%. Each lane takes its slice to ≥95%, then ratchets its JaCoCo floor up so coverage can't regress (see the capstone lane). Depends on the JaCoCo report wiring (#192 / PR #241) landing first. Opus-agent sized.

Scope: data/repository/** (MailRepositoryImpl, AccountRepositoryImpl, paging sources), the data mappers (Mappers.kt, entity⇄domain mapping), and pure domain/** logic.

Test approach: JVM unit only — MockK, Turbine (Flows), coroutines-test; org.json is a real test dep. No device. Cover success + error + edge paths (empty results, pagination boundaries, every field/enum in mapping).

Target: ≥95% instruction & line for the packages in scope. Add missing tests; do not change production behaviour. Then raise this slice's ratchet floor (capstone lane).

**Strangler lane 1 of 6** in the push to raise coverage to **>95%**. Each lane takes its slice to ≥95%, then ratchets its JaCoCo floor up so coverage can't regress (see the capstone lane). Depends on the JaCoCo report wiring (#192 / PR #241) landing first. Opus-agent sized. **Scope:** `data/repository/**` (MailRepositoryImpl, AccountRepositoryImpl, paging sources), the data mappers (`Mappers.kt`, entity⇄domain mapping), and pure `domain/**` logic. **Test approach:** JVM unit only — MockK, Turbine (Flows), coroutines-test; `org.json` is a real test dep. No device. Cover success + error + edge paths (empty results, pagination boundaries, every field/enum in mapping). **Target:** ≥95% instruction & line for the packages in scope. Add missing tests; do not change production behaviour. Then raise this slice's ratchet floor (capstone lane).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#246