()
| 16 | new RocksMemoryResource(); |
| 17 | |
| 18 | @Test |
| 19 | public void slice() { |
| 20 | try (final Slice slice = new Slice("testSlice")) { |
| 21 | assertThat(slice.empty()).isFalse(); |
| 22 | assertThat(slice.size()).isEqualTo(9); |
| 23 | assertThat(slice.data()).isEqualTo("testSlice".getBytes()); |
| 24 | } |
| 25 | |
| 26 | try (final Slice otherSlice = new Slice("otherSlice".getBytes())) { |
| 27 | assertThat(otherSlice.data()).isEqualTo("otherSlice".getBytes()); |
| 28 | } |
| 29 | |
| 30 | try (final Slice thirdSlice = new Slice("otherSlice".getBytes(), 5)) { |
| 31 | assertThat(thirdSlice.data()).isEqualTo("Slice".getBytes()); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | @Test |
| 36 | public void sliceClear() { |
no test coverage detected