makePaste returns a string with exactly n lines (n-1 newlines).
(n int)
| 25 | |
| 26 | // makePaste returns a string with exactly n lines (n-1 newlines). |
| 27 | func 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 |
no outgoing calls
no test coverage detected