[gzep] Small test improvements.
This commit is contained in:
parent
86872dbb9e
commit
49a78fd593
1 changed files with 3 additions and 4 deletions
|
@ -14,11 +14,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkEncode(b *testing.B) {
|
func BenchmarkEncode(b *testing.B) {
|
||||||
data := []byte(
|
data := []byte(testtool.RandomName() +
|
||||||
"New function should generally only return pointer types, " +
|
"New function should generally only return pointer types, " +
|
||||||
"since a pointer can be put into the return interface " +
|
"since a pointer can be put into the return interface " +
|
||||||
"value without an allocation. " +
|
"value without an allocation.",
|
||||||
testtool.RandomName(),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
b.ResetTimer()
|
b.ResetTimer()
|
||||||
|
|
Loading…
Reference in a new issue