]> Cypherpunks repositories - gostls13.git/commit
encoding/json: more tests to cover decoding edge cases
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 11 Sep 2018 20:09:00 +0000 (22:09 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 12 Sep 2018 06:48:09 +0000 (06:48 +0000)
commitdc3680865a880e4f24ad40474b27c8ca276d8e5d
tree2b102742bbeef7109f65e441c778760476bee39c
parent023dbb188dda6aa49ccc41c8e38f2703700b3f5a
encoding/json: more tests to cover decoding edge cases

The overall coverage of the json package goes up from 90.8% to 91.3%.

While at it, apply two minor code simplifications found while inspecting
the HTML coverage report.

Change-Id: I0fba968afeedc813b1385e4bde72d93b878854d7
Reviewed-on: https://go-review.googlesource.com/134735
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/vet/all/whitelist/all.txt
src/encoding/json/decode.go
src/encoding/json/decode_test.go