(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func TestListWorktrees_NonRepo(t *testing.T) { |
| 160 | notARepo := t.TempDir() |
| 161 | _, err := ListWorktrees(notARepo) |
| 162 | require.Error(t, err) |
| 163 | } |
| 164 | |
| 165 | // seedInitialCommit ensures the repo has at least one commit so worktree-add can succeed. |
| 166 | func seedInitialCommit(t *testing.T, repoDir string) { |
nothing calls this directly
no test coverage detected