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

Function extract_origin_with_port

crates/openshell-cli/src/auth.rs:486–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

484
485 #[test]
486 fn extract_origin_with_port() {
487 assert_eq!(
488 extract_origin("https://8080-abc.brevlab.com:8080/some/path"),
489 Some("https://8080-abc.brevlab.com:8080".to_string())
490 );
491 }
492
493 #[test]
494 fn extract_origin_strips_path() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected