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

Function speedtestTexts

diffmatchpatch/benchutil_test.go:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const testdataPath = "../testdata/"
16
17func speedtestTexts() (s1 string, s2 string) {
18 d1, err := ioutil.ReadFile(testdataPath + "speedtest1.txt")
19 if err != nil {
20 panic(err)
21 }
22 d2, err := ioutil.ReadFile(testdataPath + "speedtest2.txt")
23 if err != nil {
24 panic(err)
25 }
26
27 return string(d1), string(d2)
28}

Callers 4

BenchmarkDiffHalfMatchFunction · 0.85
BenchmarkDiffMainLargeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…