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