(t *testing.T)
| 737 | } |
| 738 | |
| 739 | func TestReportCommand_InvalidGroupBy(t *testing.T) { |
| 740 | tmpDir := createReportTestFiles(t) |
| 741 | resetReportFlags() |
| 742 | reportGroupBy = "nonexistent" |
| 743 | |
| 744 | err := runReport(reportCmd, []string{tmpDir}) |
| 745 | if err == nil { |
| 746 | t.Fatal("Expected error for invalid group-by field") |
| 747 | } |
| 748 | if !strings.Contains(err.Error(), "unsupported group-by field") { |
| 749 | t.Errorf("Expected 'unsupported group-by field' error, got: %v", err) |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | func TestReportCommand_CriticalPathOrdering(t *testing.T) { |
| 754 | tmpDir := createReportTestFiles(t) |
nothing calls this directly
no test coverage detected