(t *testing.T)
| 376 | } |
| 377 | |
| 378 | func TestFooterHidesMergeHintForRunningPRD(t *testing.T) { |
| 379 | p := &PRDPicker{ |
| 380 | basePath: "/project", |
| 381 | entries: []PRDEntry{ |
| 382 | { |
| 383 | Name: "auth", |
| 384 | Completed: 3, |
| 385 | Total: 8, |
| 386 | LoopState: loop.LoopStateRunning, |
| 387 | Iteration: 2, |
| 388 | Branch: "chief/auth", |
| 389 | }, |
| 390 | }, |
| 391 | selectedIndex: 0, |
| 392 | } |
| 393 | |
| 394 | shortcuts := p.buildFooterShortcuts() |
| 395 | if containsSubstring(shortcuts, "m: merge") { |
| 396 | t.Errorf("expected no 'm: merge' in footer for running PRD, got: %s", shortcuts) |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | // --- Clean Action Tests --- |
| 401 |
nothing calls this directly
no test coverage detected