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

Function TestReportCommand_GroupByEffort

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

Source from the content-addressed store, hash-verified

343}
344
345func TestReportCommand_GroupByEffort(t *testing.T) {
346 tmpDir := createReportTestFiles(t)
347 resetReportFlags()
348 reportGroupBy = "effort"
349
350 output := captureReportOutput(t, tmpDir)
351
352 if !strings.Contains(output, "## Tasks by Effort") {
353 t.Error("Expected '## Tasks by Effort' section")
354 }
355 if !strings.Contains(output, "### small") {
356 t.Error("Expected '### small' group header")
357 }
358 if !strings.Contains(output, "### medium") {
359 t.Error("Expected '### medium' group header")
360 }
361 if !strings.Contains(output, "### large") {
362 t.Error("Expected '### large' group header")
363 }
364}
365
366func TestReportCommand_GroupByType(t *testing.T) {
367 tmpDir := createReportTestFiles(t)

Callers

nothing calls this directly

Calls 4

createReportTestFilesFunction · 0.85
resetReportFlagsFunction · 0.85
captureReportOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected