(t *testing.T)
| 2394 | } |
| 2395 | |
| 2396 | func TestClientWorktreeRemove(t *testing.T) { |
| 2397 | cmd, cmdCtx := createCommandContext(t, 0, "", "") |
| 2398 | client := Client{ |
| 2399 | GitPath: "path/to/git", |
| 2400 | commandContext: cmdCtx, |
| 2401 | } |
| 2402 | |
| 2403 | err := client.WorktreeRemove(context.Background(), "-feature") |
| 2404 | |
| 2405 | require.NoError(t, err) |
| 2406 | assert.Equal(t, "path/to/git worktree remove -- -feature", strings.Join(cmd.Args[3:], " ")) |
| 2407 | } |
| 2408 | |
| 2409 | func TestClientWorktreePrune(t *testing.T) { |
| 2410 | cmd, cmdCtx := createCommandContext(t, 0, "", "") |
nothing calls this directly
no test coverage detected