]> Cypherpunks repositories - gostls13.git/commit
encoding/json: add test for Unmarshal of malformed data
authorRuss Cox <rsc@golang.org>
Tue, 29 Jan 2013 21:34:18 +0000 (13:34 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 29 Jan 2013 21:34:18 +0000 (13:34 -0800)
commitad37081b672a22f573f91aca7a5828e2c9718314
tree78c642c075159fd07e4e68ef287c80163171b35b
parentec1948a44d93b76692188df3a9d1dc45c8ee390e
encoding/json: add test for Unmarshal of malformed data

Roll back CL making primitive type unmarshal faster,
because it broke the Unmarshal of malformed data.

Add benchmarks for unmarshal of primitive types.

Update #3949.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7228061
src/pkg/encoding/json/bench_test.go
src/pkg/encoding/json/decode.go
src/pkg/encoding/json/decode_test.go