(t *testing.T, jsonFile string, cfg config)
| 194 | } |
| 195 | |
| 196 | func runMarkdown(t *testing.T, jsonFile string, cfg config) string { |
| 197 | t.Helper() |
| 198 | cfg.JSONFile = jsonFile |
| 199 | cfg.MarkdownOut = "-" |
| 200 | if cfg.MaxOutputBytes == 0 { |
| 201 | cfg.MaxOutputBytes = 8192 |
| 202 | } |
| 203 | var stdout bytes.Buffer |
| 204 | err := run(context.Background(), cfg, &stdout, ioDiscard{}, emptyEnv) |
| 205 | require.NoError(t, err) |
| 206 | return stdout.String() |
| 207 | } |
| 208 | |
| 209 | func writeEvents(t *testing.T, events ...testEvent) string { |
| 210 | t.Helper() |
no test coverage detected