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

Function new_compressed_batch_data

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

Source from the content-addressed store, hash-verified

181 use super::*;
182
183 fn new_compressed_batch_data() -> Bytes {
184 let file_contents =
185 alloc::string::String::from_utf8_lossy(include_bytes!("../../testdata/batch.hex"));
186 let file_contents = &(&*file_contents)[..file_contents.len() - 1];
187 let data = alloy_primitives::hex::decode(file_contents).unwrap();
188 data.into()
189 }
190
191 #[test]
192 fn test_batch_reader() {

Calls 2

decodeFunction · 0.50
lenMethod · 0.45

Tested by 3

test_batch_readerFunction · 0.56
test_batch_reader_fjordFunction · 0.56