]> Cypherpunks repositories - gostls13.git/commit
compress/flate: improve short writer error test
authorKlaus Post <klauspost@gmail.com>
Sun, 10 Apr 2016 15:16:07 +0000 (17:16 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Apr 2016 15:59:00 +0000 (15:59 +0000)
commita56f5a032217e1e28c005886a98054caf7dc8201
tree377d6f76063f77b7a05418e23a493463ca03a99d
parentf20b1809f213c662932106a68c76ea3545eab1ee
compress/flate: improve short writer error test

This improves the short version of the writer test.

First of all, it has a much quicker setup. Previously that
could take up towards 0.5 second.

Secondly, it will test all compression levels in short mode as well.

Execution time is 1.7s/0.03s for normal/short mode.

Change-Id: I275a21f712daff6f7125cc6a493415e86439cb19
Reviewed-on: https://go-review.googlesource.com/21800
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/flate/writer_test.go