(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestPrimitiveMapReaderRejectsNullChunks(t *testing.T) { |
| 53 | f := NewFory(WithXlang(false), WithCompatible(false)) |
| 54 | buf := NewByteBuffer(nil) |
| 55 | buf.WriteLength(1) |
| 56 | buf.WriteUint8(KEY_HAS_NULL) |
| 57 | |
| 58 | f.readCtx.SetData(buf.Bytes()) |
| 59 | _ = f.readCtx.ReadStringStringMap(RefModeNone, false) |
| 60 | require.Error(t, f.readCtx.CheckError()) |
| 61 | } |
nothing calls this directly
no test coverage detected