(t *testing.T, buf *ByteBuffer, value int32)
| 75 | } |
| 76 | |
| 77 | func checkVarintWrite(t *testing.T, buf *ByteBuffer, value int32) { |
| 78 | err := &Error{} |
| 79 | require.Equal(t, buf.WriterIndex(), buf.ReaderIndex()) |
| 80 | buf.WriteVarint32(value) |
| 81 | varInt := buf.ReadVarint32(err) |
| 82 | require.Equal(t, buf.ReaderIndex(), buf.WriterIndex()) |
| 83 | require.Equal(t, value, varInt) |
| 84 | } |
| 85 | |
| 86 | // TestUnsafePutVarUint32PhysicalWriteWidth verifies that UnsafePutVarUint32 performs |
| 87 | // an 8-byte physical write for 5-byte varints and that Reserve(8) (as required by |
no test coverage detected