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

Function forward_spec_ssh_forward_arg

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

Source from the content-addressed store, hash-verified

1406
1407 #[test]
1408 fn forward_spec_ssh_forward_arg() {
1409 let spec = ForwardSpec::parse("0.0.0.0:8080").unwrap();
1410 assert_eq!(spec.ssh_forward_arg(), "0.0.0.0:8080:127.0.0.1:8080");
1411
1412 let spec = ForwardSpec::parse("8080").unwrap();
1413 assert_eq!(spec.ssh_forward_arg(), "127.0.0.1:8080:127.0.0.1:8080");
1414 }
1415
1416 #[test]
1417 fn ssh_forward_command_matches_exact_l_argument() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected