1
0
Fork 0
mirror of https://github.com/Luzifer/ansible-role-version.git synced 2024-10-18 21:04:21 +00:00
ansible-role-version/vendor/github.com/sergi/go-diff/diffmatchpatch/benchutil_test.go
Knut Ahlers 209b813c5b
Update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-03-19 18:16:10 +01:00

28 lines
702 B
Go

// Copyright (c) 2012-2016 The go-diff authors. All rights reserved.
// https://github.com/sergi/go-diff
// See the included LICENSE file for license details.
//
// go-diff is a Go implementation of Google's Diff, Match, and Patch library
// Original library is Copyright (c) 2006 Google Inc.
// http://code.google.com/p/google-diff-match-patch/
package diffmatchpatch
import (
"io/ioutil"
)
const testdataPath = "../testdata/"
func speedtestTexts() (s1 string, s2 string) {
d1, err := ioutil.ReadFile(testdataPath + "speedtest1.txt")
if err != nil {
panic(err)
}
d2, err := ioutil.ReadFile(testdataPath + "speedtest2.txt")
if err != nil {
panic(err)
}
return string(d1), string(d2)
}