()
| 100 | |
| 101 | #[test] |
| 102 | fn test_decode_encode_raw_span_batch() { |
| 103 | // Load in the raw span batch from the reference derivation pipeline implementation. |
| 104 | let raw_span_batch_hex = include_bytes!("./testdata/raw_batch.hex"); |
| 105 | let raw_span_batch = RawSpanBatch::decode(&mut raw_span_batch_hex.as_slice()).unwrap(); |
| 106 | |
| 107 | let mut encoding_buf = Vec::new(); |
| 108 | raw_span_batch.encode(&mut encoding_buf).unwrap(); |
| 109 | assert_eq!(encoding_buf, raw_span_batch_hex); |
| 110 | } |
| 111 | } |