MCPcopy Create free account
hub / github.com/cli/cli / TestClientWorktreePrune

Function TestClientWorktreePrune

git/client_test.go:2408–2419  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

WorktreePruneMethod · 0.95
createCommandContextFunction · 0.85
EqualMethod · 0.80
JoinMethod · 0.80

Tested by

no test coverage detected