go/src
Joe Tsai 8a83d36b8e compress/bzip2: refactor unit tests
Over the years as more bugs were discovered with the bzip2 library,
new Tests were appended the unit tests and the tests became gnarly.

Clean up the tests to be more consistent with modern Go style in
addition to coalescing common tests into a general version that
iterates over a list of input/output pairs. This has the advantage that
the input, output, and test code are all in the same area, rather than
being sprawled around the test file.

There is no loss of test coverage.

Change-Id: I377ed89378f0b89763d4a56ffc37b22d9c2a369e
Reviewed-on: https://go-review.googlesource.com/20133
Run-TryBot: Joe Tsai <joetsai@digital-static.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-03-03 02:53:34 +00:00
..
archive all: single space after period. 2016-03-02 00:13:47 +00:00
bufio all: single space after period. 2016-03-02 00:13:47 +00:00
builtin
bytes all: single space after period. 2016-03-02 00:13:47 +00:00
cmd cmd/compile: eliminate arch-specific typedefs 2016-03-03 02:23:37 +00:00
compress compress/bzip2: refactor unit tests 2016-03-03 02:53:34 +00:00
container all: single space after period. 2016-03-02 00:13:47 +00:00
crypto crypto/tls: check errors from (*Conn).writeRecord 2016-03-02 18:20:46 +00:00
database/sql all: single space after period. 2016-03-02 00:13:47 +00:00
debug all: single space after period. 2016-03-02 00:13:47 +00:00
encoding all: single space after period. 2016-03-02 00:13:47 +00:00
errors all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
expvar all: single space after period. 2016-03-02 00:13:47 +00:00
flag all: single space after period. 2016-03-02 00:13:47 +00:00
fmt fmt: optimize string truncation 2016-03-02 20:51:38 +00:00
go go/ast: fix typo in comment 2016-03-02 19:16:10 +00:00
hash cmd/internal/obj/x86: add new instructions, cleanup. 2016-01-13 14:04:44 +00:00
html all: single space after period. 2016-03-02 00:13:47 +00:00
image all: single space after period. 2016-03-02 00:13:47 +00:00
index/suffixarray
internal all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
io all: single space after period. 2016-03-02 00:13:47 +00:00
log all: single space after period. 2016-03-02 00:13:47 +00:00
math math: delete unused function sqrtC 2016-03-03 02:29:09 +00:00
mime all: single space after period. 2016-03-02 00:13:47 +00:00
net net: skip TestLookupPort on android with netgo 2016-03-03 02:52:18 +00:00
os all: single space after period. 2016-03-02 00:13:47 +00:00
path all: single space after period. 2016-03-02 00:13:47 +00:00
reflect all: single space after period. 2016-03-02 00:13:47 +00:00
regexp all: single space after period. 2016-03-02 00:13:47 +00:00
runtime runtime/pprof: sort counted profiles by count 2016-03-02 20:04:29 +00:00
sort all: single space after period. 2016-03-02 00:13:47 +00:00
strconv all: single space after period. 2016-03-02 00:13:47 +00:00
strings all: single space after period. 2016-03-02 00:13:47 +00:00
sync all: single space after period. 2016-03-02 00:13:47 +00:00
syscall all: single space after period. 2016-03-02 00:13:47 +00:00
testing all: single space after period. 2016-03-02 00:13:47 +00:00
text all: single space after period. 2016-03-02 00:13:47 +00:00
time all: single space after period. 2016-03-02 00:13:47 +00:00
unicode all: single space after period. 2016-03-02 00:13:47 +00:00
unsafe all: single space after period. 2016-03-02 00:13:47 +00:00
vendor net/http: update http2 to check header values, move from vendor to internal 2016-01-21 00:19:02 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: use consistent shebang line 2016-01-14 03:16:20 +00:00
buildall.bash build: use go tool dist list 2016-02-26 03:58:58 +00:00
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash cmd/go, go/build: add support for Fortran 2016-02-24 15:06:38 +00:00
make.bat cmd/go, go/build: add support for Fortran 2016-02-24 15:06:38 +00:00
make.rc
nacltest.bash
race.bash cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
race.bat cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
run.bash cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
run.bat cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00
run.rc cmd/dist: make test default to --no-rebuild 2015-12-29 15:20:00 +00:00