beads/internal/syncbranch
beads/crew/lydia 72b3f0ab72 test(syncbranch): improve test coverage from 63.5% to 78.8% (bd-io8c)
Add integration tests for previously untested code paths:
- CheckForcePush: normal fast-forward, force push detection, SHA match, nonexistent remote
- UpdateStoredRemoteSHA: remote push, local-only fallback, nonexistent branch error
- copyCommittedJSONLToMainRepo: HEAD extraction, metadata copy, bare repo path normalization
- PullFromSyncBranch diverged case: 3-way content merge, mass deletion safety check
- ResetToRemote: full reset-to-remote cycle with JSONL copy verification
- preemptiveFetchAndFastForward: fast-forward and local-ahead paths
- pushFromWorktree: successful first-try push

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 19:52:02 -08:00
..
coverage_gap_test.go test(syncbranch): improve test coverage from 63.5% to 78.8% (bd-io8c) 2026-02-05 19:52:02 -08:00
ensure_worktree_test.go fix: resolve failing tests in daemon autostart, gitlab, and syncbranch 2026-02-04 22:19:00 -08:00
integrity.go fix(sync): atomic export and force-push detection (bd-3bhl, bd-4hh5) 2026-01-04 23:14:11 -08:00
integrity_test.go Add sync branch integrity guards for force-push detection (bd-hlsw.4) 2025-12-30 17:07:25 -08:00
syncbranch.go fix(sync): persist sync branch to yaml and database (GH#909) (#910) 2026-01-05 19:11:55 -08:00
syncbranch_test.go fix: make tests resilient to project .beads/redirect 2026-01-10 22:38:04 -08:00
worktree.go fix: ensure sync-branch worktree exists on fresh clone (#1349) 2026-01-27 12:40:29 -08:00
worktree_divergence_test.go fix: use content-level merge for divergence recovery (bd-kpy) 2025-12-24 22:41:40 -08:00
worktree_helpers_test.go bd sync: 2025-12-23 23:38:57 2025-12-24 00:06:41 -08:00
worktree_path_test.go fix: edge case in normalizeBeadsRelPath for similar prefixes 2025-12-29 15:51:17 -08:00
worktree_sync_test.go refactor: Remove deprecated fetchAndRebaseInWorktree (bd-kkka) 2025-12-28 16:40:26 -08:00