MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / frame_read_eof

Function frame_read_eof

nodedb/src/control/server/native/codec.rs:206–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205 #[tokio::test]
206 async fn frame_read_eof() {
207 let mut cursor = std::io::Cursor::new(Vec::<u8>::new());
208 let result = read_frame(&mut cursor).await.unwrap();
209 assert!(result.is_none());
210 }
211
212 #[tokio::test]
213 async fn frame_reject_oversized() {

Callers

nothing calls this directly

Calls 1

read_frameFunction · 0.70

Tested by

no test coverage detected