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

Function TestClientWorktreePrune

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

Source from the content-addressed store, hash-verified

2407}
2408
2409func 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}

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