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

Function TestMassiveRuneDiffConversion

diffmatchpatch/diff_test.go:1469–1480  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1467}
1468
1469func TestMassiveRuneDiffConversion(t *testing.T) {
1470 sNew, err := ioutil.ReadFile("../testdata/fixture.go")
1471 if err != nil {
1472 panic(err)
1473 }
1474
1475 dmp := New()
1476 t1, t2, tt := dmp.DiffLinesToChars("", string(sNew))
1477 diffs := dmp.DiffMain(t1, t2, false)
1478 diffs = dmp.DiffCharsToLines(diffs, tt)
1479 assert.NotEmpty(t, diffs)
1480}
1481
1482func TestDiffPartialLineIndex(t *testing.T) {
1483 dmp := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
DiffLinesToCharsMethod · 0.80
DiffMainMethod · 0.80
DiffCharsToLinesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…