Skip to content

test: make branch deletion behavior auditable - #87

Merged
rohoswagger merged 1 commit into
mainfrom
test/delete-cli-coverage
Aug 4, 2026
Merged

test: make branch deletion behavior auditable#87
rohoswagger merged 1 commit into
mainfrom
test/delete-cli-coverage

Conversation

@rohoswagger

Copy link
Copy Markdown
Owner

Adds real-repository coverage for default branch deletion, child reparenting, PR base repair, best-effort remote cleanup, validation failures, and linked-worktree prompt cancellation. GitHub and remote boundaries remain hermetic.

Drive delete through real repositories while isolating GitHub and remote deletion boundaries, covering current-branch defaults, child reparenting, best-effort repairs, validation, and prompt cancellation.

Constraint: Tests must never contact GitHub or mutate a real remote.

Rejected: Unit-test internal helpers only | would not prove checkout restoration, metadata persistence, Git argv, or CLI receipts.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Preserve local deletion after best-effort remote or PR repair failures.

Tested: cargo test --test worktree_mutation_cli delete_ --all-features; cargo fmt --all -- --check; full suite, clippy, and llvm-cov reported green.

Not-tested: Windows shell compatibility; this integration target is already Unix-specific.
@rohoswagger
rohoswagger merged commit 3df34f9 into main Aug 4, 2026
6 checks passed
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.

1 participant