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

Function test_identity_builder_basic

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

Source from the content-addressed store, hash-verified

655
656 #[test]
657 fn test_identity_builder_basic() {
658 let identity = Identity::builder("bob")
659 .email("bob@example.com")
660 .build()
661 .unwrap();
662
663 assert_eq!(identity.name, "bob");
664 assert_eq!(identity.email, Some("bob@example.com".to_string()));
665 assert_eq!(identity.identity_type, IdentityType::User);
666 assert_eq!(identity.usage, IdentityUsage::Personal);
667 }
668
669 #[test]
670 fn test_identity_builder_agent() {

Callers

nothing calls this directly

Calls 3

emailMethod · 0.80
unwrapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected