Skip to content

Commit d7be4c8

Browse files
authored
Merge pull request sergi#53 from sergi/43-refactor
Refactor everything
2 parents 647f90b + 2be755f commit d7be4c8

File tree

14 files changed

+3056
-2615
lines changed

14 files changed

+3056
-2615
lines changed

diffmatchpatch/benchutil_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) 2012-2016 The go-diff authors. All rights reserved.
2+
// https://github.com/sergi/go-diff
3+
// See the included LICENSE file for license details.
4+
//
5+
// go-diff is a Go implementation of Google's Diff, Match, and Patch library
6+
// Original library is Copyright (c) 2006 Google Inc.
7+
// http://code.google.com/p/google-diff-match-patch/
8+
9+
package diffmatchpatch
10+
11+
import (
12+
"io/ioutil"
13+
)
14+
15+
const testdataPath = "../testdata/"
16+
17+
func 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+
}

0 commit comments

Comments
 (0)