(t *testing.T, buf *ByteBuffer, value int32, bytesWritten int8)
| 65 | } |
| 66 | |
| 67 | func checkVarint(t *testing.T, buf *ByteBuffer, value int32, bytesWritten int8) { |
| 68 | err := &Error{} |
| 69 | require.Equal(t, buf.WriterIndex(), buf.ReaderIndex()) |
| 70 | actualBytesWritten := buf.WriteVarint32(value) |
| 71 | require.Equal(t, bytesWritten, actualBytesWritten) |
| 72 | varInt := buf.ReadVarint32(err) |
| 73 | require.Equal(t, buf.ReaderIndex(), buf.WriterIndex()) |
| 74 | require.Equal(t, value, varInt) |
| 75 | } |
| 76 | |
| 77 | func checkVarintWrite(t *testing.T, buf *ByteBuffer, value int32) { |
| 78 | err := &Error{} |
no test coverage detected