(t *testing.T)
| 621 | } |
| 622 | |
| 623 | func TestReadHeaderRejectsOutOfBandWithoutBuffers(t *testing.T) { |
| 624 | f := New(WithXlang(true), WithCompatible(false)) |
| 625 | f.readCtx.SetData([]byte{XLangFlag | OutOfBandFlag}) |
| 626 | |
| 627 | readHeader(f.readCtx) |
| 628 | |
| 629 | err := f.readCtx.TakeError() |
| 630 | require.Error(t, err) |
| 631 | require.Contains(t, err.Error(), "out-of-band buffers") |
| 632 | } |
| 633 | |
| 634 | func TestFloat16StructField(t *testing.T) { |
| 635 | type StructWithFloat16 struct { |
nothing calls this directly
no test coverage detected