]> Cypherpunks repositories - gostls13.git/commit
encoding/json: expand and modernize TestInterfaceSet
authorJoe Tsai <joetsai@digital-static.net>
Mon, 23 Dec 2024 18:35:24 +0000 (10:35 -0800)
committerJoseph Tsai <joetsai@digital-static.net>
Sat, 28 Dec 2024 01:23:24 +0000 (17:23 -0800)
commit2b794ed86cb1b718bc212ee90fecbb8f3b28a744
treebf7db1dce3814e4ce34106db7e20eea1a4961313
parente3cd55e9d293d519e622e788e902f372dc30338a
encoding/json: expand and modernize TestInterfaceSet

Add more test cases to cover a wider range of edge cases.
Use a generic addr function to take the address of a value.
Even though redudant, explicitly include a cast to the
top-level Go type so that it is more readable what the
expected input and ouput types are.

Change-Id: I3ef68df6f1beb903ae237cd49f3dcb91e5270fe7
Reviewed-on: https://go-review.googlesource.com/c/go/+/638256
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/encoding/json/decode_test.go