Seven one-branch outcomes no test produces, each with a sibling that already models it #172
Closed
opened 2026-09-02 02:15:03 +00:00 by JMR-dev
·
1 comment
No Branch/Tag Specified
main
fix/102-picker-back-press-overshoot
fix/268-saf-picker-determinism
feat/ogg-vorbis-libvorbis
feat/expedited-conversion-work
fix/gate-cache-in-worktrees
chore/gate-runs-shellcheck
test/publish-delete-arm-real-provider
docs/e8-instrumented-coverage
docs/api37-carrier-count-drift
docs/e7-second-constraint
test/publish-to-a-real-saf-destination
fix/api37-report-match-line
fix/api37-task-snapshot-crash
test/join-failure-message-on-device
docs/e2e-read-findings-e7
test/cancelling-a-running-export
test/reattach-to-a-running-job
test/content-uri-reaches-ffmpeg
fix/launcher-wiring-waits-for-the-pick
fix/cancel-tests-need-a-slower-encode
test/cancelling-a-running-join
test/cancelling-a-running-session
test/notification-cancel-action
test/ffmpeg-progress-is-observed
test/fallback-asserts-the-path
test/flac-and-opus-assert-their-format
docs/e2e-read-findings
docs/wave4-coverage-numbers
fix/injectable-startup-sweep-scope
test/session-outcome-seam
test/launcher-callback-identity
test/theme-follows-system-dark
test/audio-drop-arm
fix/rotation-waits-for-recreation
fix/convert-guards-on-ready
test/retry-save-mime
test/hardware-progress-reaches-workmanager
test/ffprobe-mapping-seam
test/device-codec-enumeration-seam
test/unknown-container-row
test/null-message-fallbacks
test/cancel-reaches-workmanager
docs/coverage-wave3-recovery
test/concat-engine-seam
docs/coverage-wave3
test/mediaprobe-merge-seam
test/adaptive-shell-wiring
test/aac-audio-args
test/notification-progress-text
test/media3-muxer-guard
test/hardware-fallback-and-cancellation
test/unprobeable-join-clip
test/one-branch-outcomes
test/foreground-type-regimes
fix/bound-wedge-diagnostics
docs/coverage-wave2
test/screen-wiring
test/viewmodel-setters
test/join-state-mapping
test/conversion-state-mapping
test/dedupe-user-messages
fix/restore-stack-merges
test/refused-jobs
test/concatworker-failure-arms
test/container-capabilities-audio
test/readspec-enum-fallbacks
test/outputpublisher-seams
test/mediaprobe-track-seam
test/outputpublisher-partial-branches
test/fake-provider-scaffolding
docs/coverage-read-findings
chore/gitignore-kotlin
test/bound-the-hangs
docs/coverage-remeasure
ci/baseline-counter-precision
fix/invalid-suggestion-chip
ci/wedged-leg-report
fix/reattachment-overwrites-pick
test/theme-live-branches
fix/failed-save-retry
fix/empty-composition-crash
ci/advisory-failure-report
docs/seven-run-counts
test/release-permission-guard
ci/build-workflow-permissions
docs/api37-point-release
docs/benchmark-populate-path
fix/dead-assertion-probe-test
ci/actionlint
test/device-codecs-encode-consequence
fix/sdkmanager-pipefail
docs/readme-restart-claim
fix/saf-picker-root-discovery
fix/probe-dispatcher-seam
test/media3engine-mime-tables
test/mediaprobe-pure-helpers
fix/codec-vocabulary-drift
docs/robolectric-rationale-correction
docs/api37-advisory-counts
test/r38-8-saf-e2e
test/r38-7-join-states
test/r38-6-conversion-states
test/r38-5-state-seam
fix/jacoco-robolectric-coverage
docs/instrumented-tests-correction
test/r38-2-filecard
test/r38-4-advanced-picker
test/r38-3-pickers
tools/file-issue-script
tools/api-37-emulator
fix/review-app-gaps
docs/review-corrections
No results found.
Labels
Clear labels
above-cut
accessibility
backlog
bug
confirmed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
plausible
question
sev:high
sev:low
sev:medium
wontfix
Worked autonomously overnight: local, JVM-verifiable, no product decision
Barrier affecting people with disabilities
Held for manual review: product/UX call, CI/workflow, hardware, or unverifiable here
Something isn't working
Reviewer demonstrated the defect
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Reviewer could not fully demonstrate it; treat as unproven
Further information is requested
High severity
Low severity
Medium severity
This will not be worked on
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JMR-dev/LibreMediaConverter#172
Reference in New Issue
Block a user
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.
Seven outcomes no test produces
Each row below is a site where JaCoCo reports
mi > 0— a concrete instruction no test runs, not ashort-circuit combination of a compound condition. Measured on
mainatd354f64.codec/AndroidDeviceCodecs.kt:35canDecode(InputProbe.UNPARSEABLE)'s earlyreturn false(mi=2)CodecVocabularyTestmodel/ContainerCapabilities.kt:94accepts(container, VideoCodec.NONE, mode)(mi=2)ContainerCapabilitiesTestmodel/ContainerCapabilities.kt:323repairVideo's keep-the-requested-codec arm (mi=3)ContainerCapabilitiesTestmodel/ContainerCapabilities.kt:348firstContainerHolding's?: holders.firstOrNull()fallback (mi=4)ContainerCapabilitiesTestmodel/ContainerCapabilities.kt:282suggestions'excludefilter actually excluding something (mi=1)ContainerCapabilitiesTestconvert/OutputPublisher.kt:230destinationIsKnownEmpty's?: false(mi=2)OutputPublisherPublishTestwork/JobSnapshots.kt:31!isFilearm of the outputtakeIf(mi=2)JobSnapshotsTestNotes on three of them
AndroidDeviceCodecs.kt:35is the real implementation of the rule thatDeviceCodecs.PERMISSIVEmodels. The router's version is already covered throughan input the platform cannot parse routes to ffmpeg; this one is not, and it is the one that runson a device.
CodecVocabularyTestexercisesforTesting(...).canDecode(...)for known and unknownnames but never for the sentinel.
ContainerCapabilities.kt:94is dead in production today — every caller guardsNONEbeforecalling. It is in scope anyway because its audio twin at
:101has a dedicated test(
no audio track is accepted by every container in both modes). The asymmetry is the argument,not the reachability — record that in the test's KDoc so a later reader does not mistake it for an
F4-style exemption that slipped through.
OutputPublisher.kt:230—runCatching { ... }.getOrNull() ?: false. A provider that returnsno cursor must not read as "known empty". Reachable with the
FakeProvidersscaffolding #134 addedprecisely so a provider can answer wrongly.
JobSnapshots.kt:31— the sibling arm (an empty file) is already tested bya staged file with nothing in it is not an output, and that test already stands up the WorkManagerfixture, so this is an addition to an existing harness, not a new one. The untested arm is a
recorded output path that no longer names a file at all.
Acceptance: one mutation per row
:35delete the early return ·:94changetruetofalse·:323drop the arm so it falls toelse·:348drop the?: holders.firstOrNull()·:282delete the.filter { it != exclude }·
:230change?: falseto?: true·:31dropit.isFile &&from thetakeIf.Every one must go red on its own test, then be restored.
Correction from the implementation, so the next coverage read does not re-derive it.
JobSnapshots.kt:31's missed arm is not the one this ticket named. The body says!isFile— "a recorded output path that no longer names a file". That arm is already covered, by thereclaimedfixture ina staged file with nothing in it is not an output.The arm with
mi=2ispath == null: a job carrying no output path at all, which is what a still-running job in the same tag query looks like.getWorkInfosByTagFlowreturns it alongside the finished ones, because the tag is the worker class and every attempt ever enqueued carries it.The test in #180 covers that arm, and asserts the consequence rather than the null check: such a job must not be offered as a result, so
Reattachment.choosehas to walk past it. Mutation: drop the?.inpath?.let(::File).Also from the same PR:
ContainerCapabilities:282is not a gap and is not closed. Its.filter { it != exclude }cannot drop anything — on the shared containerrepairalways changes at least one codec, and the single call site passing a non-defaultexclude(validateVideo:186) excludes a spec carryingVideoCodec.COPYwhile every repaired candidate carriesNONE. F4-shaped, recorded rather than covered.