(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func TestRunStats_TableOutput(t *testing.T) { |
| 137 | tmpDir := createStatsTestFiles(t) |
| 138 | resetStatsFlags() |
| 139 | statsFormat = "table" |
| 140 | |
| 141 | output, err := captureStatsOutput(t, []string{tmpDir}) |
| 142 | if err != nil { |
| 143 | t.Fatalf("runStats failed: %v", err) |
| 144 | } |
| 145 | |
| 146 | for _, expected := range []string{"TASK STATISTICS", "BY STATUS:", "BY PRIORITY:", "BY EFFORT:"} { |
| 147 | if !strings.Contains(output, expected) { |
| 148 | t.Errorf("table output missing %q:\n%s", expected, output) |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | func TestRunStats_InvalidFormat(t *testing.T) { |
| 154 | tmpDir := createStatsTestFiles(t) |
nothing calls this directly
no test coverage detected