MCPcopy Index your code
hub / github.com/coder/coder / runMarkdown

Function runMarkdown

scripts/gotestsummary/main_test.go:196–207  ·  view source on GitHub ↗
(t *testing.T, jsonFile string, cfg config)

Source from the content-addressed store, hash-verified

194}
195
196func 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
209func writeEvents(t *testing.T, events ...testEvent) string {
210 t.Helper()

Calls 3

runFunction · 0.70
HelperMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected