MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestPruneWorktrees

Function TestPruneWorktrees

internal/git/worktree_test.go:262–270  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

260}
261
262func TestPruneWorktrees(t *testing.T) {
263 t.Run("prune succeeds on clean repo", func(t *testing.T) {
264 dir := initTestRepo(t)
265 err := PruneWorktrees(dir)
266 if err != nil {
267 t.Fatalf("PruneWorktrees() error = %v", err)
268 }
269 })
270}
271
272func TestMergeBranch(t *testing.T) {
273 t.Run("fast-forward merge succeeds", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

initTestRepoFunction · 0.85
PruneWorktreesFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected