getInt32Array only diverges from getNullableInt32Array on null input
(t *testing.T)
| 190 | |
| 191 | // getInt32Array only diverges from getNullableInt32Array on null input |
| 192 | func TestRealFlexibleDecoderGetInt32Array(t *testing.T) { |
| 193 | t.Run("returns errInvalidArrayLength for null array", func(t *testing.T) { |
| 194 | rd := &realFlexibleDecoder{&realDecoder{raw: []byte{0x00}}} |
| 195 | got, err := rd.getInt32Array() |
| 196 | require.ErrorIs(t, err, errInvalidArrayLength) |
| 197 | assert.Nil(t, got) |
| 198 | }) |
| 199 | } |
| 200 | |
| 201 | func TestRealFlexibleDecoderGetNullableInt64Array(t *testing.T) { |
| 202 | tests := []struct { |
nothing calls this directly
no test coverage detected