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

Function test_identity_equality

atomic-identity/src/identity.rs:750–757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

748
749 #[test]
750 fn test_identity_equality() {
751 let keypair = KeyPair::generate();
752 let id1 = Identity::new("alice", &keypair);
753 let id2 = Identity::new("bob", &keypair); // Same keypair, different name
754
755 // Equality is based on the identity ID (derived from public key)
756 assert_eq!(id1, id2);
757 }
758
759 #[test]
760 fn test_author_from_identity() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected