()
| 114 | |
| 115 | #[test] |
| 116 | fn roundtrip_batch_of_three() { |
| 117 | let ops = vec![put_op("a", 1), delete_op("b", 2), erase_op("c", 3)]; |
| 118 | let bytes = encode_op_batch(&ops).unwrap(); |
| 119 | let back = decode_op_batch(&bytes).unwrap(); |
| 120 | assert_eq!(ops, back); |
| 121 | } |
| 122 | |
| 123 | #[test] |
| 124 | fn decode_garbage_errors() { |
nothing calls this directly
no test coverage detected