MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / forward_spec_parse_port_only

Function forward_spec_parse_port_only

crates/openshell-core/src/forward.rs:1368–1372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1366
1367 #[test]
1368 fn forward_spec_parse_port_only() {
1369 let spec = ForwardSpec::parse("8080").unwrap();
1370 assert_eq!(spec.bind_addr, "127.0.0.1");
1371 assert_eq!(spec.port, 8080);
1372 }
1373
1374 #[test]
1375 fn forward_spec_parse_ipv4_and_port() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected