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

Function TestWorktreeDisplayPathWithoutWorktree

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

Source from the content-addressed store, hash-verified

169}
170
171func TestWorktreeDisplayPathWithoutWorktree(t *testing.T) {
172 p := &PRDPicker{basePath: "/project"}
173
174 entry := PRDEntry{WorktreeDir: ""}
175 result := p.worktreeDisplayPath(entry)
176 if result != "(current directory)" {
177 t.Errorf("expected '(current directory)', got %q", result)
178 }
179}
180
181func TestRenderEntryWithLoadError(t *testing.T) {
182 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

worktreeDisplayPathMethod · 0.95

Tested by

no test coverage detected