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

Function TestReportCommand_GroupByPriority

apps/cli/internal/cli/report_test.go:327–343  ·  view source on GitHub ↗

--- Group-by variations ---

(t *testing.T)

Source from the content-addressed store, hash-verified

325// --- Group-by variations ---
326
327func TestReportCommand_GroupByPriority(t *testing.T) {
328 tmpDir := createReportTestFiles(t)
329 resetReportFlags()
330 reportGroupBy = "priority"
331
332 output := captureReportOutput(t, tmpDir)
333
334 if !strings.Contains(output, "## Tasks by Priority") {
335 t.Error("Expected '## Tasks by Priority' section")
336 }
337 if !strings.Contains(output, "### critical") {
338 t.Error("Expected '### critical' group header")
339 }
340 if !strings.Contains(output, "### high") {
341 t.Error("Expected '### high' group header")
342 }
343}
344
345func TestReportCommand_GroupByEffort(t *testing.T) {
346 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