()
| 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() { |
nothing calls this directly
no test coverage detected