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

Function TestWrapText_NoWrapNeeded

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

Source from the content-addressed store, hash-verified

84}
85
86func TestWrapText_NoWrapNeeded(t *testing.T) {
87 short := "Short"
88 result := wrapText(short, 25)
89 if result != short {
90 t.Errorf("Short text should not be wrapped: got '%s', want '%s'", result, short)
91 }
92}
93
94func TestWrapText_ExactLength(t *testing.T) {
95 text := "Exactly25CharactersHere!!" // 25 characters

Callers

nothing calls this directly

Calls 1

wrapTextFunction · 0.85

Tested by

no test coverage detected