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

Function extract_origin_strips_path

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

Source from the content-addressed store, hash-verified

492
493 #[test]
494 fn extract_origin_strips_path() {
495 assert_eq!(
496 extract_origin("https://gateway.example.com/auth/connect?foo=bar"),
497 Some("https://gateway.example.com".to_string())
498 );
499 }
500
501 #[test]
502 fn extract_origin_no_scheme() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected