(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestCanMergeCompletedWithBranch(t *testing.T) { |
| 202 | p := &PRDPicker{ |
| 203 | basePath: "/project", |
| 204 | entries: []PRDEntry{ |
| 205 | { |
| 206 | Name: "auth", |
| 207 | Completed: 8, |
| 208 | Total: 8, |
| 209 | LoopState: loop.LoopStateComplete, |
| 210 | Branch: "chief/auth", |
| 211 | }, |
| 212 | }, |
| 213 | selectedIndex: 0, |
| 214 | } |
| 215 | if !p.CanMerge() { |
| 216 | t.Error("expected CanMerge() to return true for completed PRD with branch") |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | func TestCanMergeNoBranch(t *testing.T) { |
| 221 | p := &PRDPicker{ |