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

Function test_extract_default_identity

atomic-agent/src/identity.rs:1237–1248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1235
1236 #[test]
1237 fn test_extract_default_identity() {
1238 let config = r#"
1239default_identity = "ABCDEF1234567890"
1240version = 1
1241
1242[default_by_usage]
1243"#;
1244 assert_eq!(
1245 extract_default_identity_from_config(config),
1246 Some("ABCDEF1234567890".to_string())
1247 );
1248 }
1249
1250 #[test]
1251 fn test_extract_default_identity_empty_config() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected