Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / github.com / sergi / go-diff@v1.1.0 / diffmatchpatch / benchutil_test.go
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 }