MCPcopy Create free account
hub / github.com/base/base / empty_buffer

Function empty_buffer

crates/utilities/ring-buffer/src/ring_buffer.rs:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135 #[test]
136 fn empty_buffer() {
137 let rb = RingBuffer::<u64, &str>::new(cap(4));
138 assert!(rb.is_empty());
139 let vals: Vec<_> = rb.entries_after(&0).collect();
140 assert!(vals.is_empty());
141 }
142
143 #[test]
144 fn oldest_position_empty() {

Callers

nothing calls this directly

Calls 4

entries_afterMethod · 0.80
capFunction · 0.70
newFunction · 0.50
collectMethod · 0.45

Tested by

no test coverage detected