(#[case] block: BaseBlock, #[case] expected: BatchComposeError)
| 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] |
nothing calls this directly
no outgoing calls
no test coverage detected