(t *testing.T)
| 301 | } |
| 302 | |
| 303 | func TestRenderMultilineTitleNonInside(t *testing.T) { |
| 304 | b := NewBox().Padding(2, 1).Style(Single).TitlePosition(Top) |
| 305 | _, err := b.Render("Line1\nLine2", "Content") |
| 306 | if err == nil { |
| 307 | t.Fatalf("expected error for multiline title at non-Inside position, got nil") |
| 308 | } |
| 309 | if !strings.Contains(err.Error(), "multiline titles are only supported Inside title position only") { |
| 310 | t.Errorf("unexpected error message: %v", err) |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | func TestRenderNegativeWrapLimit(t *testing.T) { |
| 315 | b := NewBox().Padding(1, 1).Style(Single).WrapContent(true).WrapLimit(-1) |
nothing calls this directly
no test coverage detected