(t *testing.T)
| 723 | } |
| 724 | |
| 725 | func TestReportCommand_InvalidFormat(t *testing.T) { |
| 726 | tmpDir := createReportTestFiles(t) |
| 727 | resetReportFlags() |
| 728 | reportFormat = "xml" |
| 729 | |
| 730 | err := runReport(reportCmd, []string{tmpDir}) |
| 731 | if err == nil { |
| 732 | t.Fatal("Expected error for invalid format") |
| 733 | } |
| 734 | if !strings.Contains(err.Error(), "unsupported format") { |
| 735 | t.Errorf("Expected 'unsupported format' error, got: %v", err) |
| 736 | } |
| 737 | } |
| 738 | |
| 739 | func TestReportCommand_InvalidGroupBy(t *testing.T) { |
| 740 | tmpDir := createReportTestFiles(t) |
nothing calls this directly
no test coverage detected