()
| 210 | |
| 211 | #[test] |
| 212 | fn parses_snapshot_command() { |
| 213 | let cli = DevnetCli::try_parse_from([ |
| 214 | "base-devnet", |
| 215 | "snapshot", |
| 216 | "--chain", |
| 217 | "sepolia", |
| 218 | "--builder-datadir", |
| 219 | "/tmp/builder", |
| 220 | "--client-datadir", |
| 221 | "/tmp/client", |
| 222 | "--prefund-address", |
| 223 | "0x0000000000000000000000000000000000000001", |
| 224 | "--block-interval", |
| 225 | "200ms", |
| 226 | ]) |
| 227 | .unwrap(); |
| 228 | |
| 229 | let DevnetCommand::Snapshot(args) = cli.command else { |
| 230 | panic!("expected snapshot command") |
| 231 | }; |
| 232 | assert_eq!(args.chain, "sepolia"); |
| 233 | assert_eq!(args.builder_datadir.to_str(), Some("/tmp/builder")); |
| 234 | assert!(args.prefund_address.is_some()); |
| 235 | assert_eq!(args.block_interval, DevnetBlockInterval::TwoHundredMilliseconds); |
| 236 | assert!(args.block_gas_limit.is_none()); |
| 237 | } |
| 238 | |
| 239 | #[test] |
| 240 | fn parses_snapshot_block_gas_limit() { |
nothing calls this directly
no outgoing calls
no test coverage detected