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

Function test_identity_builder_delegated

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

Source from the content-addressed store, hash-verified

652
653 #[test]
654 fn test_identity_builder_delegated() {
655 let user = Identity::generate("alice");
656 let agent = Identity::builder("alice-assistant")
657 .delegated_by(user.id)
658 .build()
659 .unwrap();
660
661 assert!(agent.identity_type.is_delegated());
662 assert_eq!(agent.delegated_by, Some(user.id));
663 }
664
665 #[test]
666 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