()
| 134 | |
| 135 | #[test] |
| 136 | fn test_empty_span_batch() { |
| 137 | let mut out = Vec::new(); |
| 138 | let batch = Batch::Span(SpanBatch::default()); |
| 139 | // Fails to even encode an empty span batch - decoding will do the same |
| 140 | let err = batch.encode(&mut out).unwrap_err(); |
| 141 | assert_eq!(BatchEncodingError::SpanBatchError(SpanBatchError::EmptySpanBatch), err); |
| 142 | } |
| 143 | } |