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

Function TestRunStats_PhaseShownWhenPresent

apps/cli/internal/cli/stats_test.go:322–335  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

320}
321
322func TestRunStats_PhaseShownWhenPresent(t *testing.T) {
323 tmpDir := createStatsPhaseTestFiles(t)
324 resetStatsFlags()
325 // No --group-by flag, but tasks have phases — section should still appear
326
327 output, err := captureStatsOutput(t, []string{tmpDir})
328 if err != nil {
329 t.Fatalf("runStats failed: %v", err)
330 }
331
332 if !strings.Contains(output, "BY PHASE:") {
333 t.Errorf("expected BY PHASE section when phases exist:\n%s", output)
334 }
335}

Callers

nothing calls this directly

Calls 3

resetStatsFlagsFunction · 0.85
captureStatsOutputFunction · 0.85

Tested by

no test coverage detected