(b *testing.B)
| 1559 | } |
| 1560 | |
| 1561 | func BenchmarkDiffMainRunesLargeDiffLines(b *testing.B) { |
| 1562 | fp, _ := os.Open("../testdata/diff10klinestest.txt") |
| 1563 | defer fp.Close() |
| 1564 | data, _ := ioutil.ReadAll(fp) |
| 1565 | |
| 1566 | dmp := New() |
| 1567 | |
| 1568 | b.ResetTimer() |
| 1569 | |
| 1570 | for i := 0; i < b.N; i++ { |
| 1571 | text1, text2, linearray := dmp.DiffLinesToRunes(string(data), "") |
| 1572 | |
| 1573 | diffs := dmp.DiffMainRunes(text1, text2, false) |
| 1574 | diffs = dmp.DiffCharsToLines(diffs, linearray) |
| 1575 | } |
| 1576 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…