(t *testing.T)
| 28 | ) |
| 29 | |
| 30 | func TestPrimitiveListReadableOverflow(t *testing.T) { |
| 31 | var err Error |
| 32 | serializer := primitiveListSerializer{type_: reflect.TypeOf([]int64{}), elemTypeID: INT64} |
| 33 | length := int(^uint(0)>>1)/8 + 1 |
| 34 | assert.False(t, serializer.checkBodyReadable(NewByteBuffer(nil), &err, length, false)) |
| 35 | assert.True(t, err.HasError()) |
| 36 | } |
| 37 | |
| 38 | func TestFloat16Slice(t *testing.T) { |
| 39 | f := NewFory(WithXlang(false), WithCompatible(false)) |
nothing calls this directly
no test coverage detected