MCPcopy Create free account
hub / github.com/driangle/taskmd / TestReportCommand_InvalidFormat

Function TestReportCommand_InvalidFormat

apps/cli/internal/cli/report_test.go:725–737  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

723}
724
725func 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
739func TestReportCommand_InvalidGroupBy(t *testing.T) {
740 tmpDir := createReportTestFiles(t)

Callers

nothing calls this directly

Calls 4

createReportTestFilesFunction · 0.85
resetReportFlagsFunction · 0.85
runReportFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected