go/src/encoding
Alberto Donizetti 2e7c3b3f55 encoding/gob: add Encode-Decode Int slices tests
Tinkering with the gob package shows that is currently possible to
*completely destroy* Int slices encoding without triggering a single
test failure.

The various encInt{8,16,32,64}Slice methods are only called during the
execution of the GobMapInterfaceEncode test, which only encodes a few
slices of length exactly 1 and then just checks that the error
returned by Encode is nil (without trying to Decode back the data).

This patch adds a few tests for signed integer slices encoding.

Change-Id: Ifaaee2f32132873118b241f79aa8203e4ad31416
Reviewed-on: https://go-review.googlesource.com/38066
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-03-13 20:22:39 +00:00
..
ascii85 all: single space after period. 2016-03-02 00:13:47 +00:00
asn1 all: make spelling consistent 2016-12-08 23:22:37 +00:00
base32 all: single space after period. 2016-03-02 00:13:47 +00:00
base64 encoding/base64, html/template: fix grammar mistakes 2017-03-07 17:42:45 +00:00
binary cmd/compile/internal/ssa: combine 2 byte loads + shifts into word load + rolw 8 on AMD64 2017-02-14 22:17:08 +00:00
csv encoding/csv: document Read error behavior 2016-10-28 19:38:12 +00:00
gob encoding/gob: add Encode-Decode Int slices tests 2017-03-13 20:22:39 +00:00
hex encoding/hex: Document DecodedLen. 2016-11-13 17:53:22 +00:00
json encoding/json: clarify documention for Unmarshal into a pointer. 2017-02-10 13:39:10 +00:00
pem encoding/pem: refuse extra data on ending line 2017-03-01 19:23:09 +00:00
xml encoding/xml: remove unused start parameter 2017-03-06 04:37:27 +00:00
encoding.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00