MCPcopy Create free account
hub / github.com/aws/clock-bound / basic_send_receive

Function basic_send_receive

clock-bound/src/daemon/async_ring_buffer.rs:305–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303
304 #[tokio::test]
305 async fn basic_send_receive() {
306 let (tx, rx) = create(2);
307 tx.send(1).unwrap();
308 tx.send(2).unwrap();
309
310 assert_eq!(rx.recv().await.unwrap(), 1);
311 assert_eq!(rx.recv().await.unwrap(), 2);
312 }
313
314 #[tokio::test]
315 async fn buffer_overflow() {

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected