Commit 067bb443 authored by Katie Hockman's avatar Katie Hockman

compress: move benchmark text from src/testdata to src/compress/testdata

This text is used mainly for benchmark compression testing, and in one
net test. The text was prevoiusly in a src/testdata directory, but since
that directory would only include one file, the text is moved to the
existing src/compression/testdata directory.

This does not cause any change to the benchmark results.

Updates #27151

Change-Id: I38ab5089dfe744189a970947d15be50ef1d48517
Reviewed-on: https://go-review.googlesource.com/138495
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 01e6cfc2
...@@ -177,8 +177,6 @@ go src=.. ...@@ -177,8 +177,6 @@ go src=..
strconv strconv
testdata testdata
+ +
testdata
+
text text
template template
testdata testdata
......
...@@ -371,7 +371,7 @@ var deflateInflateStringTests = []deflateInflateStringTest{ ...@@ -371,7 +371,7 @@ var deflateInflateStringTests = []deflateInflateStringTest{
[...]int{100018, 50650, 50960, 51150, 50930, 50790, 50790, 50790, 50790, 50790, 43683}, [...]int{100018, 50650, 50960, 51150, 50930, 50790, 50790, 50790, 50790, 50790, 43683},
}, },
{ {
"../../testdata/Isaac.Newton-Opticks.txt", "../testdata/Isaac.Newton-Opticks.txt",
"Isaac.Newton-Opticks", "Isaac.Newton-Opticks",
[...]int{567248, 218338, 198211, 193152, 181100, 175427, 175427, 173597, 173422, 173422, 325240}, [...]int{567248, 218338, 198211, 193152, 181100, 175427, 175427, 173597, 173422, 173422, 325240},
}, },
...@@ -654,7 +654,7 @@ func (w *failWriter) Write(b []byte) (int, error) { ...@@ -654,7 +654,7 @@ func (w *failWriter) Write(b []byte) (int, error) {
func TestWriterPersistentError(t *testing.T) { func TestWriterPersistentError(t *testing.T) {
t.Parallel() t.Parallel()
d, err := ioutil.ReadFile("../../testdata/Isaac.Newton-Opticks.txt") d, err := ioutil.ReadFile("../testdata/Isaac.Newton-Opticks.txt")
if err != nil { if err != nil {
t.Fatalf("ReadFile: %v", err) t.Fatalf("ReadFile: %v", err)
} }
......
...@@ -28,7 +28,7 @@ var suites = []struct{ name, file string }{ ...@@ -28,7 +28,7 @@ var suites = []struct{ name, file string }{
// reasonably compressible. // reasonably compressible.
{"Digits", "../testdata/e.txt"}, {"Digits", "../testdata/e.txt"},
// Newton is Isaac Newtons's educational text on Opticks. // Newton is Isaac Newtons's educational text on Opticks.
{"Newton", "../../testdata/Isaac.Newton-Opticks.txt"}, {"Newton", "../testdata/Isaac.Newton-Opticks.txt"},
} }
func BenchmarkDecode(b *testing.B) { func BenchmarkDecode(b *testing.B) {
......
...@@ -17,7 +17,7 @@ import ( ...@@ -17,7 +17,7 @@ import (
) )
const ( const (
newton = "../testdata/Isaac.Newton-Opticks.txt" newton = "../compress/testdata/Isaac.Newton-Opticks.txt"
newtonLen = 567198 newtonLen = 567198
newtonSHA256 = "d4a9ac22462b35e7821a4f2706c211093da678620a8f9997989ee7cf8d507bbd" newtonSHA256 = "d4a9ac22462b35e7821a4f2706c211093da678620a8f9997989ee7cf8d507bbd"
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment