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

Function test_identity_builder_agent

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

Source from the content-addressed store, hash-verified

668
669 #[test]
670 fn test_identity_builder_agent() {
671 let identity = Identity::builder("ci-bot")
672 .identity_type(IdentityType::Agent)
673 .description("CI bot for testing")
674 .build()
675 .unwrap();
676
677 assert_eq!(identity.name, "ci-bot");
678 assert!(identity.identity_type.is_agent());
679 assert_eq!(
680 identity.metadata.description,
681 Some("CI bot for testing".to_string())
682 );
683 }
684
685 #[test]
686 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