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

Function test_identity_builder_delegated

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

Source from the content-addressed store, hash-verified

684
685 #[test]
686 fn test_identity_builder_delegated() {
687 let user = Identity::generate("alice");
688 let agent = Identity::builder("alice-assistant")
689 .delegated_by(user.id)
690 .build()
691 .unwrap();
692
693 assert!(agent.identity_type.is_delegated());
694 assert_eq!(agent.delegated_by, Some(user.id));
695 }
696
697 #[test]
698 fn test_identity_display_short() {

Callers

nothing calls this directly

Calls 3

delegated_byMethod · 0.80
unwrapMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected