()
| 365 | |
| 366 | #[test] |
| 367 | fn empty_slice() { |
| 368 | let mut buffer = LinearBuffer::new(3); |
| 369 | buffer.append(b"foo"); |
| 370 | |
| 371 | let bytes = buffer.slice_initialized_part(0..0); |
| 372 | assert_eq!(bytes.as_ref(), b""); |
| 373 | } |
| 374 | |
| 375 | #[test] |
| 376 | fn slices_are_zero_copy() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…