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

Function test_errors

crates/batcher/encoder/src/composer.rs:101–103  ·  view source on GitHub ↗
(#[case] block: BaseBlock, #[case] expected: BatchComposeError)

Source from the content-addressed store, hash-verified

99 #[case::not_deposit(make_block(vec![non_deposit_tx()]), BatchComposeError::NotDepositTx)]
100 #[case::bad_calldata(make_block(vec![deposit_tx(Bytes::new())]), BatchComposeError::L1InfoDecode)]
101 fn test_errors(#[case] block: BaseBlock, #[case] expected: BatchComposeError) {
102 assert_eq!(BatchComposer::block_to_single_batch(&block).unwrap_err(), expected);
103 }
104
105 /// Deposits are left out of the batch, since derivation rebuilds them from L1.
106 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected