]> Cypherpunks repositories - gostls13.git/commitdiff
mime: Fix BenchmarkQDecodeHeader to call DecodeHeader
authorJustin Nuß <nuss.justin@gmail.com>
Sun, 28 Feb 2016 16:48:49 +0000 (17:48 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 28 Feb 2016 17:24:01 +0000 (17:24 +0000)
Found this while reading through the code. The benchmark
accidently called the wrong function.

Change-Id: Idb88aa71e7098a4e29e7f5f39e64f8c5f8936a2a
Reviewed-on: https://go-review.googlesource.com/19977
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/mime/encodedword_test.go

index 5fcd7a06dd6a0229e65fca7d101dca6f36f2921d..f7fb2203b3f3aeec08cc484a948bcaa4b1224cdd 100644 (file)
@@ -203,6 +203,6 @@ func BenchmarkQDecodeHeader(b *testing.B) {
        dec := new(WordDecoder)
 
        for i := 0; i < b.N; i++ {
-               dec.Decode("=?utf-8?q?=C2=A1Hola,_se=C3=B1or!?=")
+               dec.DecodeHeader("=?utf-8?q?=C2=A1Hola,_se=C3=B1or!?=")
        }
 }