(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func TestIntToRuneLimit(t *testing.T) { |
| 137 | // DiffLinesToChars and DiffLinesToRunes can encode at most 1,112,060 |
| 138 | // unique lines across both texts; the line index one past that panics. |
| 139 | assert.NotPanics(t, func() { intToRune(1112060) }) |
| 140 | assert.Panics(t, func() { intToRune(1112061) }) |
| 141 | } |
nothing calls this directly
no test coverage detected