(t *testing.T)
| 580 | } |
| 581 | |
| 582 | func TestNext_TableFormat(t *testing.T) { |
| 583 | tmpDir := createNextTestTaskFiles(t) |
| 584 | |
| 585 | resetNextFlags() |
| 586 | nextFormat = "table" |
| 587 | nextLimit = 3 |
| 588 | |
| 589 | output, err := captureNextOutput(t, []string{tmpDir}) |
| 590 | if err != nil { |
| 591 | t.Fatalf("runNext failed: %v", err) |
| 592 | } |
| 593 | |
| 594 | if !strings.Contains(output, "Recommended tasks:") { |
| 595 | t.Error("Expected table header 'Recommended tasks:'") |
| 596 | } |
| 597 | if !strings.Contains(output, "#") && !strings.Contains(output, "ID") { |
| 598 | t.Error("Expected table column headers") |
| 599 | } |
| 600 | if !strings.Contains(output, "Effort") { |
| 601 | t.Error("Expected 'Effort' column header in table output") |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | func TestNext_NoActionableTasks(t *testing.T) { |
| 606 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected