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

Function TestRunPackageLevelFailure

scripts/gotestsummary/main_test.go:183–194  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

181}
182
183func TestRunPackageLevelFailure(t *testing.T) {
184 t.Parallel()
185
186 jsonFile := writeEvents(t,
187 testEvent{Action: "output", Package: "example.com/pkg", Output: "setup failed\n"},
188 testEvent{Action: "fail", Package: "example.com/pkg", Elapsed: 0.30},
189 )
190
191 markdown := runMarkdown(t, jsonFile, config{MaxOutputBytes: 8192})
192 require.Contains(t, markdown, "(package)")
193 require.Contains(t, markdown, "setup failed")
194}
195
196func runMarkdown(t *testing.T, jsonFile string, cfg config) string {
197 t.Helper()

Callers

nothing calls this directly

Calls 3

writeEventsFunction · 0.85
runMarkdownFunction · 0.85
ContainsMethod · 0.45

Tested by

no test coverage detected