MCPcopy Index your code
hub / github.com/aws/clock-bound / wrap

Function wrap

clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:229–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228 #[test]
229 fn wrap() {
230 let mut buffer = RingBuffer::new(NonZeroUsize::new(2).unwrap());
231
232 buffer.push(1);
233 buffer.push(2);
234 buffer.push(3);
235 }
236
237 #[test]
238 fn head_and_tail() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected