MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / TestWrapText_Basic

Function TestWrapText_Basic

utils_test.go:64–69  ·  view source on GitHub ↗

======================================== Text Wrapping Tests ========================================

(t *testing.T)

Source from the content-addressed store, hash-verified

62// ========================================
63
64func TestWrapText_Basic(t *testing.T) {
65 result := wrapText("Hello World", 25)
66 if len(result) < 1 {
67 t.Error("wrapText should return at least one character")
68 }
69}
70
71func TestWrapText_Long(t *testing.T) {
72 longText := "This is a very long text that needs to be wrapped at twenty-five characters to test the wrapping functionality properly"

Callers

nothing calls this directly

Calls 1

wrapTextFunction · 0.85

Tested by

no test coverage detected