• Alberto Donizetti's avatar
    encoding/gob: add Encode-Decode Int slices tests · 2e7c3b3f
    Alberto Donizetti authored
    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/38066Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    2e7c3b3f
Name
Last commit
Last update
..
codec_test.go Loading commit data...
debug.go Loading commit data...
dec_helpers.go Loading commit data...
decgen.go Loading commit data...
decode.go Loading commit data...
decoder.go Loading commit data...
doc.go Loading commit data...
dump.go Loading commit data...
enc_helpers.go Loading commit data...
encgen.go Loading commit data...
encode.go Loading commit data...
encoder.go Loading commit data...
encoder_test.go Loading commit data...
error.go Loading commit data...
example_encdec_test.go Loading commit data...
example_interface_test.go Loading commit data...
example_test.go Loading commit data...
gobencdec_test.go Loading commit data...
timing_test.go Loading commit data...
type.go Loading commit data...
type_test.go Loading commit data...