======================================== Text Truncation Tests ========================================
(t *testing.T)
| 104 | // ======================================== |
| 105 | |
| 106 | func TestTruncateText_Short(t *testing.T) { |
| 107 | text := "Short" |
| 108 | result := truncateText(text, 25) |
| 109 | if result != text { |
| 110 | t.Errorf("Short text should not be truncated: got '%s', want '%s'", result, text) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func TestTruncateText_Long(t *testing.T) { |
| 115 | text := "This is a very long text that needs to be truncated" |
nothing calls this directly
no test coverage detected