Steve Yegge
f503a5ae43
test: improve syncbranch coverage from 27% to 67% (bd-io8c)
Add comprehensive tests for internal/syncbranch package:
syncbranch.go:
- TestGetFromYAML: env var and default behavior
- TestIsConfigured: env var presence detection
- TestIsConfiguredWithDB: database and env var checks
- TestGetConfigFromDB: direct DB value retrieval
worktree.go helper functions:
- TestIsNonFastForwardError: git push error detection
- TestHasChangesInWorktree: dirty state detection
- TestCommitInWorktree: worktree commit flow
- TestCopyJSONLToMainRepo: file sync between worktrees
- TestGetRemoteForBranch: remote name resolution
- TestGetRepoRoot: repo root detection including worktrees
- TestHasGitRemote: remote existence check
- TestGetCurrentBranch: branch name detection
- TestFormatVanishedIssues: forensic logging
worktree.go main functions:
- TestCommitToSyncBranch: basic commit flow
- TestPullFromSyncBranch: pull and fast-forward scenarios
- TestResetToRemote: remote reset error handling
- TestPushSyncBranch: push with worktree recreation
- TestPreemptiveFetchAndFastForward: pre-fetch behavior
- TestFetchAndRebaseInWorktree: rebase error handling
- TestRunCmdWithTimeoutMessage: command execution
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:48:40 -08:00
..
2025-12-20 03:24:51 -08:00
2025-12-23 13:38:13 -08:00
2025-12-23 13:42:24 -08:00
2025-12-23 13:39:51 -08:00
2025-12-18 17:45:49 -05:00
2025-12-18 17:45:49 -05:00
2025-12-22 21:15:41 -08:00
2025-12-23 13:39:51 -08:00
2025-12-19 18:13:56 -08:00
2025-12-22 01:25:19 -08:00
2025-12-19 18:30:03 -08:00
2025-12-21 15:41:22 -08:00
2025-12-20 09:27:41 -08:00
2025-12-23 13:47:24 -08:00
2025-12-23 13:41:24 -08:00
2025-12-23 13:48:40 -08:00
2025-12-23 12:06:42 -08:00
2025-12-22 01:25:23 -08:00
2025-12-22 23:37:45 -08:00
2025-12-19 18:31:33 -08:00