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

Function makePaste

internal/tui/prompt_test.go:27–33  ·  view source on GitHub ↗

makePaste returns a string with exactly n lines (n-1 newlines).

(n int)

Source from the content-addressed store, hash-verified

25
26// makePaste returns a string with exactly n lines (n-1 newlines).
27func makePaste(n int) string {
28 parts := make([]string, n)
29 for i := range parts {
30 parts[i] = fmt.Sprintf("line %d", i+1)
31 }
32 return strings.Join(parts, "\n")
33}
34
35// TestSetCursorRuneOffsetCrossesSoftWrappedLine: walking to a target row must
36// traverse a soft-wrapped logical line in between. bubbles' CursorUp inside a

Calls

no outgoing calls

Tested by

no test coverage detected