MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestWrapForScrollbackNoWidthIsNoop

Function TestWrapForScrollbackNoWidthIsNoop

internal/tui/render_test.go:63–68  ·  view source on GitHub ↗

width <= 0 (before the first WindowSizeMsg) is a no-op passthrough.

(t *testing.T)

Source from the content-addressed store, hash-verified

61 }
62 }
63}
64
65// TestRenderQueuedCapsVisualRows: queuedBodyCap bounds RENDERED rows, not
66// logical lines. A single long echo line soft-wraps inside lipgloss, so an
67// uncapped wrap would let the queued box push the status bar off-screen -
68// exactly what the cap's own comment promises can't happen.
69func TestRenderQueuedCapsVisualRows(t *testing.T) {
70 m := newTestModel(t, func(http.ResponseWriter, *http.Request) {})
71 m.width = 40

Callers

nothing calls this directly

Calls 1

wrapForScrollbackFunction · 0.85

Tested by

no test coverage detected