()
| 84 | |
| 85 | #[test] |
| 86 | fn payload_msgpack_roundtrip() { |
| 87 | let p = sample_payload(); |
| 88 | let bytes = p.encode().unwrap(); |
| 89 | let decoded = CellPayload::decode(&bytes).unwrap(); |
| 90 | assert_eq!(decoded.valid_from_ms, 1_000); |
| 91 | assert_eq!(decoded.valid_until_ms, OPEN_UPPER); |
| 92 | assert_eq!(decoded.attrs, vec![CellValue::Int64(42)]); |
| 93 | assert_eq!(decoded.surrogate, Surrogate::ZERO); |
| 94 | } |
| 95 | |
| 96 | #[test] |
| 97 | fn encoded_payload_first_byte_is_fixarray() { |
nothing calls this directly
no test coverage detected