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

Function test_identity_id_short

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

Source from the content-addressed store, hash-verified

593
594 #[test]
595 fn test_identity_id_short() {
596 let keypair = KeyPair::generate();
597 let id = IdentityId::from_public_key(&keypair.public);
598 let short = id.short();
599 assert_eq!(short.len(), 8);
600 }
601
602 #[test]
603 fn test_identity_type_is_user() {

Callers

nothing calls this directly

Calls 1

shortMethod · 0.45

Tested by

no test coverage detected