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

Function parses_bootnode_command

bin/base/src/commands/bootnode.rs:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131 #[test]
132 fn parses_bootnode_command() {
133 let cli = BaseCli::parse_from(["base", "bootnode"]);
134
135 assert_eq!(cli.chain, None);
136 let BaseCommand::Bootnode(bootnode) = cli.command else {
137 panic!("expected bootnode command");
138 };
139 assert_eq!(bootnode.consensus.listen_tcp_port, 9222);
140 assert_eq!(bootnode.execution.v4_addr.to_string(), "0.0.0.0:30301");
141 }
142}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected