(t *testing.T)
| 2407 | } |
| 2408 | |
| 2409 | func TestClientWorktreePrune(t *testing.T) { |
| 2410 | cmd, cmdCtx := createCommandContext(t, 0, "", "") |
| 2411 | client := Client{ |
| 2412 | GitPath: "path/to/git", |
| 2413 | commandContext: cmdCtx, |
| 2414 | } |
| 2415 | |
| 2416 | err := client.WorktreePrune(context.Background()) |
| 2417 | |
| 2418 | require.NoError(t, err) |
| 2419 | assert.Equal(t, "path/to/git worktree prune", strings.Join(cmd.Args[3:], " ")) |
| 2420 | } |
nothing calls this directly
no test coverage detected