(t *testing.T)
| 119 | } |
| 120 | |
| 121 | func 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 | |
| 136 | func TestRunStats_TableOutput(t *testing.T) { |
| 137 | tmpDir := createStatsTestFiles(t) |
nothing calls this directly
no test coverage detected