MCPcopy Create free account
hub / github.com/sergi/go-diff / TestIntToRuneLimit

Function TestIntToRuneLimit

diffmatchpatch/stringutil_test.go:136–141  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func 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}

Callers

nothing calls this directly

Calls 1

intToRuneFunction · 0.85

Tested by

no test coverage detected