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

Function test_identity_builder_agent

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

Source from the content-addressed store, hash-verified

636
637 #[test]
638 fn test_identity_builder_agent() {
639 let identity = Identity::builder("ci-bot")
640 .identity_type(IdentityType::Agent)
641 .description("CI bot for testing")
642 .build()
643 .unwrap();
644
645 assert_eq!(identity.name, "ci-bot");
646 assert!(identity.identity_type.is_agent());
647 assert_eq!(
648 identity.metadata.description,
649 Some("CI bot for testing".to_string())
650 );
651 }
652
653 #[test]
654 fn test_identity_builder_delegated() {

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.45
buildMethod · 0.45
descriptionMethod · 0.45
identity_typeMethod · 0.45

Tested by

no test coverage detected