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

Function TestRunStats_YAMLOutput

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

Source from the content-addressed store, hash-verified

119}
120
121func TestRunStats_YAMLOutput(t *testing.T) {
122 tmpDir := createStatsTestFiles(t)
123 resetStatsFlags()
124 statsFormat = "yaml"
125
126 output, err := captureStatsOutput(t, []string{tmpDir})
127 if err != nil {
128 t.Fatalf("runStats failed: %v", err)
129 }
130
131 if !strings.Contains(output, "totaltasks:") {
132 t.Errorf("YAML output missing 'totaltasks:':\n%s", output)
133 }
134}
135
136func TestRunStats_TableOutput(t *testing.T) {
137 tmpDir := createStatsTestFiles(t)

Callers

nothing calls this directly

Calls 3

createStatsTestFilesFunction · 0.85
resetStatsFlagsFunction · 0.85
captureStatsOutputFunction · 0.85

Tested by

no test coverage detected