MCPcopy Create free account
hub / github.com/influxdata/influxdb / empty_buffer

Function empty_buffer

core/linear_buffer/src/linear_buffer.rs:448–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446
447 #[test]
448 fn empty_buffer() {
449 let buffer = LinearBuffer::new(0);
450 let slice = buffer.slice_initialized_part(..);
451 assert_eq!(slice.as_ref(), b"");
452 }
453
454 #[test]
455 #[should_panic(expected = "size fits `isize`")]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…