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

Function TestTruncateText_ZeroWidth

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

Source from the content-addressed store, hash-verified

133}
134
135func TestTruncateText_ZeroWidth(t *testing.T) {
136 text := "Some text"
137 result := truncateText(text, 0)
138 if result != text {
139 t.Errorf("Zero maxWidth should return original text: got '%s', want '%s'", result, text)
140 }
141}
142
143// ========================================
144// Column Width Tests

Callers

nothing calls this directly

Calls 1

truncateTextFunction · 0.85

Tested by

no test coverage detected