======================================== Column Width Tests ========================================
(t *testing.T)
| 145 | // ======================================== |
| 146 | |
| 147 | func TestGetColumnMaxWidth_Valid(t *testing.T) { |
| 148 | // Initialize wrapped columns map |
| 149 | wrappedColumns = make(map[int]int) |
| 150 | |
| 151 | // Create a test buffer |
| 152 | b = createNewBuffer() |
| 153 | _ = b.contAppendSli([]string{"Short", "Medium", "VeryLongText"}, false) |
| 154 | |
| 155 | width := getColumnMaxWidth(0) |
| 156 | if width < 1 { |
| 157 | t.Error("getColumnMaxWidth should return positive width") |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | func TestGetColumnMaxWidth_Custom(t *testing.T) { |
| 162 | wrappedColumns = make(map[int]int) |
nothing calls this directly
no test coverage detected