MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / renderTestHeader

Function renderTestHeader

render/view.go:16–25  ·  view source on GitHub ↗
(header string, spinner spinner.Model, isFinished bool, isSubmit bool, passed *bool, noPenaltyOnFail bool)

Source from the content-addressed store, hash-verified

14const safeStepIcon = "🛡︎"
15
16func renderTestHeader(header string, spinner spinner.Model, isFinished bool, isSubmit bool, passed *bool, noPenaltyOnFail bool) string {
17 if noPenaltyOnFail {
18 header = fmt.Sprintf("%s %s", header, white.Render(safeStepIcon))
19 }
20 cmdStr := renderTest(header, spinner.View(), isFinished, &isSubmit, passed)
21 box := borderBox.Render(fmt.Sprintf(" %s ", cmdStr))
22 sliced := strings.Split(box, "\n")
23 sliced[2] = strings.Replace(sliced[2], "─", "┬", 1)
24 return strings.Join(sliced, "\n") + "\n"
25}
26
27func renderTests(tests []testModel, spinner string) string {
28 var str strings.Builder

Callers 1

ViewMethod · 0.85

Calls 2

renderTestFunction · 0.85
ViewMethod · 0.80

Tested by

no test coverage detected