MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / userinfo_beats_configured_server

Function userinfo_beats_configured_server

atomic-remote/src/auth/mod.rs:1122–1129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1120
1121 #[test]
1122 fn userinfo_beats_configured_server() {
1123 // An explicit user in the URL is a stronger, per-invocation signal.
1124 let url = "https://bob@aaron.atomic.storage/workspaces/w/projects/p/code";
1125 assert_eq!(
1126 resolve_identity_from_url(url, &servers()).as_deref(),
1127 Some("bob")
1128 );
1129 }
1130
1131 #[test]
1132 fn falls_back_to_subdomain_when_no_server_matches() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected