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

Function TestWorktreeDisplayPathWithWorktree

internal/tui/picker_test.go:161–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestWorktreeDisplayPathWithWorktree(t *testing.T) {
162 p := &PRDPicker{basePath: "/project"}
163
164 entry := PRDEntry{WorktreeDir: "/project/.chief/worktrees/auth"}
165 result := p.worktreeDisplayPath(entry)
166 if result != ".chief/worktrees/auth/" {
167 t.Errorf("expected '.chief/worktrees/auth/', got %q", result)
168 }
169}
170
171func TestWorktreeDisplayPathWithoutWorktree(t *testing.T) {
172 p := &PRDPicker{basePath: "/project"}

Callers

nothing calls this directly

Calls 1

worktreeDisplayPathMethod · 0.95

Tested by

no test coverage detected