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

Function test_identity_usage_equality

atomic-identity/src/usage.rs:322–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn test_identity_usage_equality() {
323 assert_eq!(IdentityUsage::Personal, IdentityUsage::Personal);
324 assert_ne!(IdentityUsage::Personal, IdentityUsage::Work);
325
326 assert_eq!(
327 IdentityUsage::Custom("a".to_string()),
328 IdentityUsage::Custom("a".to_string())
329 );
330 assert_ne!(
331 IdentityUsage::Custom("a".to_string()),
332 IdentityUsage::Custom("b".to_string())
333 );
334 }
335
336 #[test]
337 fn test_identity_usage_hash() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected