Skip to content

test: cover reconcile's apply-time rechecks - #32

Merged
llbbl merged 1 commit into
mainfrom
llbbl/test-cover-reconciles-apply-time-rechecks
Oct 24, 2026
Merged

llbbl merged 1 commit into
mainfrom
llbbl/test-cover-reconciles-apply-time-rechecks

Conversation

@llbbl

@llbbl llbbl commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Raises internal/reconcile coverage from 84.5% to 91.3% and raises the coverage floor to match.
  • Test-only change. Every listed guard (drop commit gate, prune with no record or a re-pointed/outside link, adopt/decline/rekey/repoint rechecks, ReplaceLink failure) was mutation-verified: removing it fails a test.

Not covered: plan.go judgeAbsent non-ENOENT stat arms are pre-empted by an earlier Lstat; HashFile-after-regular-Lstat errors need chmod or a race.

Closes #25

Every recheck that guards a delete or rewrite in reconcile Apply now has a
test that fails when the guard is removed: the drop commit gate, prune with
no record or a re-pointed/outside link, adopt/decline/rekey/repoint rechecks,
and a ReplaceLink failure. Raises the internal/reconcile floor 84.3 -> 91.3.

Closes #25
@llbbl
llbbl merged commit 1dbaa12 into main Oct 24, 2026
2 checks passed
@llbbl
llbbl deleted the llbbl/test-cover-reconciles-apply-time-rechecks branch October 24, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: cover reconcile's apply-time rechecks

1 participant