TestSpec_PublicAPI_RenderErrorBox validates the documented RenderErrorBox function. Specification: "Returns a red-bordered error box displaying title."
(t *testing.T)
| 540 | // TestSpec_PublicAPI_RenderErrorBox validates the documented RenderErrorBox function. |
| 541 | // Specification: "Returns a red-bordered error box displaying title." |
| 542 | func TestSpec_PublicAPI_RenderErrorBox(t *testing.T) { |
| 543 | result := RenderErrorBox("Build failed") |
| 544 | require.NotEmpty(t, result, "RenderErrorBox should return non-empty []string") |
| 545 | |
| 546 | var sb strings.Builder |
| 547 | for _, line := range result { |
| 548 | sb.WriteString(line) |
| 549 | sb.WriteString("\n") |
| 550 | } |
| 551 | assert.Contains(t, sb.String(), "Build failed", |
| 552 | "RenderErrorBox output should contain the provided title") |
| 553 | } |
| 554 | |
| 555 | // TestSpec_PublicAPI_RenderInfoSection validates the documented RenderInfoSection function. |
| 556 | // Specification: "Returns content wrapped in a left-bordered info section with muted styling." |
nothing calls this directly
no test coverage detected