MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / TestGetColumnMaxWidth_Custom

Function TestGetColumnMaxWidth_Custom

utils_test.go:161–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestGetColumnMaxWidth_Custom(t *testing.T) {
162 wrappedColumns = make(map[int]int)
163 wrappedColumns[0] = 30
164
165 width := getColumnMaxWidth(0)
166 if width != 30 {
167 t.Errorf("getColumnMaxWidth(0) = %d, want 30", width)
168 }
169}
170
171func TestGetColumnMaxWidth_Default(t *testing.T) {
172 wrappedColumns = make(map[int]int)

Callers

nothing calls this directly

Calls 1

getColumnMaxWidthFunction · 0.85

Tested by

no test coverage detected