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

Function TestReportCommand_InvalidGroupBy

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

Source from the content-addressed store, hash-verified

737}
738
739func 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
753func TestReportCommand_CriticalPathOrdering(t *testing.T) {
754 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