MCPcopy Create free account
hub / github.com/aws/smithy-go / TestDecoder_DecodeJSONInterface

Function TestDecoder_DecodeJSONInterface

document/json/decoder_test.go:25–63  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestDecoder_DecodeJSONInterface(t *testing.T) {
26 t.Run("Shared", func(t *testing.T) {
27 t.Run("Object", func(t *testing.T) {
28 for name, tt := range sharedObjectTests {
29 t.Run(name, func(t *testing.T) {
30 testDecodeJSONInterface(t, tt)
31 })
32 }
33 })
34 t.Run("Array", func(t *testing.T) {
35 for name, tt := range sharedArrayTestCases {
36 t.Run(name, func(t *testing.T) {
37 testDecodeJSONInterface(t, tt)
38 })
39 }
40 })
41 t.Run("Number", func(t *testing.T) {
42 for name, tt := range sharedNumberTestCases {
43 t.Run(name, func(t *testing.T) {
44 testDecodeJSONInterface(t, tt)
45 })
46 }
47 })
48 t.Run("String", func(t *testing.T) {
49 for name, tt := range sharedStringTests {
50 t.Run(name, func(t *testing.T) {
51 testDecodeJSONInterface(t, tt)
52 })
53 }
54 })
55 })
56 for name, tt := range decodeArrayTestCases {
57 t.Run("Array", func(t *testing.T) {
58 t.Run(name, func(t *testing.T) {
59 testDecodeJSONInterface(t, tt)
60 })
61 })
62 }
63}
64
65func TestNoSerde(t *testing.T) {
66 type noSerde = document.NoSerde

Callers

nothing calls this directly

Calls 1

testDecodeJSONInterfaceFunction · 0.85

Tested by

no test coverage detected