MCPcopy Create free account
hub / github.com/base/base / encode_rejects_empty_span_batch

Function encode_rejects_empty_span_batch

crates/consensus/protocol/src/batch/span.rs:899–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

897
898 #[test]
899 fn encode_rejects_empty_span_batch() {
900 assert_eq!(
901 SpanBatch::default().encode(&mut Vec::new()),
902 Err(SpanBatchError::EmptySpanBatch)
903 );
904 }
905
906 #[test]
907 fn test_check_origin_hash() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected