()
| 533 | |
| 534 | #[test] |
| 535 | fn message_round_trips() { |
| 536 | let req = ExtractRequest { |
| 537 | project_root: PathBuf::from("/tmp/x"), |
| 538 | file_path: "src/main.rs".into(), |
| 539 | }; |
| 540 | let mut buf = Vec::new(); |
| 541 | write_message(&mut buf, &req).unwrap(); |
| 542 | let mut cursor = std::io::Cursor::new(buf); |
| 543 | let decoded: ExtractRequest = read_message(&mut cursor).unwrap(); |
| 544 | assert_eq!(decoded.file_path, req.file_path); |
| 545 | assert_eq!(decoded.project_root, req.project_root); |
| 546 | } |
| 547 | |
| 548 | #[test] |
| 549 | fn slices_eq_matches() { |
nothing calls this directly
no test coverage detected