(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestWrapText_Long(t *testing.T) { |
| 72 | longText := "This is a very long text that needs to be wrapped at twenty-five characters to test the wrapping functionality properly" |
| 73 | result := wrapText(longText, 25) |
| 74 | |
| 75 | // Check that text was wrapped (contains newlines or is within limit) |
| 76 | if len(longText) > 25 && len(result) == len(longText) { |
| 77 | t.Error("Long text should be wrapped") |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | func TestWrapText_Empty(t *testing.T) { |
| 82 | result := wrapText("", 25) |
nothing calls this directly
no test coverage detected