()
| 1538 | |
| 1539 | #[test] |
| 1540 | fn test_file_ops_postcard_roundtrip() { |
| 1541 | let mut ops = FileOps::create(test_trunk_id(), "binary.dat".to_string(), None); |
| 1542 | ops.add_line_op(LineOps::delete(test_branch_id(5), vec![])); |
| 1543 | |
| 1544 | let bytes = postcard::to_allocvec(&ops).unwrap(); |
| 1545 | let deserialized: FileOps = postcard::from_bytes(&bytes).unwrap(); |
| 1546 | |
| 1547 | assert_eq!(ops, deserialized); |
| 1548 | } |
| 1549 | } |
nothing calls this directly
no test coverage detected