MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / message_round_trips

Function message_round_trips

src/extraction_worker.rs:535–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

write_messageFunction · 0.70
read_messageFunction · 0.70

Tested by

no test coverage detected