()
| 193 | |
| 194 | #[tokio::test] |
| 195 | async fn frame_read_write_roundtrip() { |
| 196 | let payload = b"hello world"; |
| 197 | let mut buf = Vec::new(); |
| 198 | write_frame(&mut buf, payload).await.unwrap(); |
| 199 | |
| 200 | let mut cursor = std::io::Cursor::new(buf); |
| 201 | let read_back = read_frame(&mut cursor).await.unwrap().unwrap(); |
| 202 | assert_eq!(read_back, payload); |
| 203 | } |
| 204 | |
| 205 | #[tokio::test] |
| 206 | async fn frame_read_eof() { |
nothing calls this directly
no test coverage detected