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