mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-03-03 03:08:27 -07:00
Update dependencies (#32)
This commit is contained in:
28
vendor/github.com/sergi/go-diff/diffmatchpatch/benchutil_test.go
generated
vendored
Normal file
28
vendor/github.com/sergi/go-diff/diffmatchpatch/benchutil_test.go
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user