(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func TestFormatBranchPathTruncatesBranch(t *testing.T) { |
| 151 | p := &PRDPicker{} |
| 152 | |
| 153 | // Very small width — only room for branch (truncated) |
| 154 | result := p.formatBranchPath("chief/very-long-branch-name", ".chief/worktrees/auth/", 15) |
| 155 | runeCount := utf8.RuneCountInString(result) |
| 156 | if runeCount > 15 { |
| 157 | t.Errorf("expected result to fit within 15 display chars, got %d: %s", runeCount, result) |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | func TestWorktreeDisplayPathWithWorktree(t *testing.T) { |
| 162 | p := &PRDPicker{basePath: "/project"} |
nothing calls this directly
no test coverage detected