()
| 1202 | |
| 1203 | #[test] |
| 1204 | fn test_file_ops_postcard_roundtrip() { |
| 1205 | let mut ops = FileOps::create(test_trunk_id(), "binary.dat".to_string(), None); |
| 1206 | ops.add_line_op(LineOps::delete(test_branch_id(5), vec![])); |
| 1207 | |
| 1208 | let bytes = postcard::to_allocvec(&ops).unwrap(); |
| 1209 | let deserialized: FileOps = postcard::from_bytes(&bytes).unwrap(); |
| 1210 | |
| 1211 | assert_eq!(ops, deserialized); |
| 1212 | } |
| 1213 | } |
nothing calls this directly
no test coverage detected