(t *testing.T)
| 169 | } |
| 170 | |
| 171 | func 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 | |
| 181 | func TestRenderEntryWithLoadError(t *testing.T) { |
| 182 | p := &PRDPicker{ |
nothing calls this directly
no test coverage detected