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

Function test_batch_reader

crates/consensus/protocol/src/batch/reader.rs:192–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191 #[test]
192 fn test_batch_reader() {
193 let raw = new_compressed_batch_data();
194 let decompressed_len = decompress_to_vec_zlib(&raw).unwrap().len();
195 let mut reader =
196 BatchReader::new(raw, RollupConfig::MAX_RLP_BYTES_PER_CHANNEL_BEDROCK as usize, false);
197 reader.next_batch(&RollupConfig::default()).unwrap();
198 assert_eq!(reader.cursor, decompressed_len);
199 }
200
201 #[test]
202 fn test_batch_reader_fjord() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.50
lenMethod · 0.45
next_batchMethod · 0.45

Tested by

no test coverage detected