getInt32Array only diverges from getNullableInt32Array on null input
(t *testing.T)
| 132 | |
| 133 | // getInt32Array only diverges from getNullableInt32Array on null input |
| 134 | func TestRealDecoderGetInt32Array(t *testing.T) { |
| 135 | t.Run("returns errInvalidArrayLength for null array", func(t *testing.T) { |
| 136 | rd := &realDecoder{raw: []byte{0xFF, 0xFF, 0xFF, 0xFF}} |
| 137 | got, err := rd.getInt32Array() |
| 138 | require.ErrorIs(t, err, errInvalidArrayLength) |
| 139 | assert.Nil(t, got) |
| 140 | }) |
| 141 | } |
| 142 | |
| 143 | func TestRealFlexibleDecoderGetNullableInt32Array(t *testing.T) { |
| 144 | tests := []struct { |
nothing calls this directly
no test coverage detected