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

Function test_identity_generate

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

Source from the content-addressed store, hash-verified

647
648 #[test]
649 fn test_identity_generate() {
650 let identity = Identity::generate("alice");
651 assert_eq!(identity.name, "alice");
652 assert_eq!(identity.identity_type, IdentityType::User);
653 assert!(!identity.is_expired());
654 }
655
656 #[test]
657 fn test_identity_builder_basic() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected