You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test coverage: PdfReaderScreenKt (Phase 7 split from #521) #606
Split out of #521 (see comment) — one of the three remaining docs/TEST_COVERAGE_PRD.md Phase 7 targets, given its own issue so it isn't force-fit into a shared PR with unrelated screens.
Scope
PdfReaderScreenKt (146 missed, 0%) — not started.
#521's investigation already checked this file's ViewModel shape: it takes a single viewModel: PdfReaderViewModel = hiltViewModel(), no sibling sharing, so it does not have the ReaderScreenKt-style sharing problem (docs/TEST_COVERAGE_PRD.md §1b). What's untested here instead is whether Roborazzi/Robolectric can even render this screen's content: it's a heavy native-PdfRenderer/bitmap/coroutine state machine, and Robolectric's PdfRenderer support (if any) needs to be checked before assuming screenshot baselines are feasible the way they were for SettingsScreenKt/CreateVaultScreenKt.
Before starting: confirm whether Robolectric can drive PdfRenderer (or whether the PDF-rendering path needs to be faked/stubbed for tests) — this determines whether the usual wrapper + pure-content + Roborazzi-baseline template can apply as-is, or whether the PDF bitmap pipeline needs isolation first.
See docs/TEST_COVERAGE_PRD.md §1b and §6 for the full history of what's been tried on the other Phase 7 targets and why.
Resolved via PR #610 (merged 2faa05b), including a follow-up fix for #613 (0-page PDF still crashed in default paginated mode after the initial fix). See docs/TEST_COVERAGE_PRD.md §1d for the full investigation writeup.
Activity
test(reader): cover PdfReaderScreen's error states, document Robolect…
docs(reader): record measured Kover coverage for #606's PdfReaderScre…
test(reader): extract PdfReaderScreen decision logic + coverage (#606) (
libravault-xyz commentedon Aug 25, 2026
Resolved via PR #610 (merged 2faa05b), including a follow-up fix for #613 (0-page PDF still crashed in default paginated mode after the initial fix). See docs/TEST_COVERAGE_PRD.md §1d for the full investigation writeup.