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

Function fallback_uses_inferred_when_it_exists

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

Source from the content-addressed store, hash-verified

831
832 #[test]
833 fn fallback_uses_inferred_when_it_exists() {
834 // The subdomain name matches a local identity — use it directly.
835 let name = decide_identity_with_default_fallback(
836 Some("aaron"),
837 false,
838 |n| n == "aaron",
839 Some("aaron-claude".to_string()),
840 );
841 assert_eq!(name.as_deref(), Some("aaron"));
842 }
843
844 #[test]
845 fn fallback_to_default_when_subdomain_name_not_local() {

Callers

nothing calls this directly

Tested by

no test coverage detected