(t *testing.T)
| 306 | } |
| 307 | |
| 308 | func TestRunStats_InvalidGroupBy(t *testing.T) { |
| 309 | tmpDir := createStatsPhaseTestFiles(t) |
| 310 | resetStatsFlags() |
| 311 | statsGroupBy = "invalid" |
| 312 | |
| 313 | _, err := captureStatsOutput(t, []string{tmpDir}) |
| 314 | if err == nil { |
| 315 | t.Fatal("expected error for invalid group-by, got nil") |
| 316 | } |
| 317 | if !strings.Contains(err.Error(), "unsupported group-by field") { |
| 318 | t.Errorf("expected 'unsupported group-by field' error, got: %v", err) |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | func TestRunStats_PhaseShownWhenPresent(t *testing.T) { |
| 323 | tmpDir := createStatsPhaseTestFiles(t) |
nothing calls this directly
no test coverage detected