(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func 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 | |
| 65 | func TestNoSerde(t *testing.T) { |
| 66 | type noSerde = document.NoSerde |
nothing calls this directly
no test coverage detected