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

Function test_identity_builder_basic

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

Source from the content-addressed store, hash-verified

623
624 #[test]
625 fn test_identity_builder_basic() {
626 let identity = Identity::builder("bob")
627 .email("bob@example.com")
628 .build()
629 .unwrap();
630
631 assert_eq!(identity.name, "bob");
632 assert_eq!(identity.email, Some("bob@example.com".to_string()));
633 assert_eq!(identity.identity_type, IdentityType::User);
634 assert_eq!(identity.usage, IdentityUsage::Personal);
635 }
636
637 #[test]
638 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