(t *testing.T)
| 290 | } |
| 291 | |
| 292 | func TestRenderInvalidTitlePosition(t *testing.T) { |
| 293 | b := NewBox().Padding(2, 1).Style(Single).TitlePosition(TitlePosition("Weird")) |
| 294 | _, err := b.Render("Title", "Content") |
| 295 | if err == nil { |
| 296 | t.Fatalf("expected error for invalid TitlePosition, got nil") |
| 297 | } |
| 298 | if !strings.Contains(err.Error(), "invalid TitlePosition") { |
| 299 | t.Errorf("unexpected error message: %v", err) |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | func TestRenderMultilineTitleNonInside(t *testing.T) { |
| 304 | b := NewBox().Padding(2, 1).Style(Single).TitlePosition(Top) |
nothing calls this directly
no test coverage detected