()
| 688 | |
| 689 | #[test] |
| 690 | fn test_derive_with_email() { |
| 691 | let user = UserIdentityInfo { |
| 692 | name: "Lee Faus".to_string(), |
| 693 | email: Some("lee@atomic.dev".to_string()), |
| 694 | public_key_base32: "ABCDEF1234567890".to_string(), |
| 695 | }; |
| 696 | let options = AgentAuthorOptions { |
| 697 | agent_name: "claude-code", |
| 698 | agent_display_name: "Claude Code", |
| 699 | session_id: "60f5cbd2-aa23-40ee-9085-4375dd186ce7", |
| 700 | identity_dir: None, |
| 701 | agent_identity: None, |
| 702 | }; |
| 703 | |
| 704 | let author = derive_agent_author(&user, &options); |
| 705 | |
| 706 | assert_eq!(author.name, "claude+60f5"); |
| 707 | assert_eq!(author.email, Some("lee@atomic.dev".to_string())); |
| 708 | assert_eq!(author.identity, Some("ABCDEF1234567890".to_string())); |
| 709 | } |
| 710 | |
| 711 | #[test] |
| 712 | fn test_derive_without_email() { |
nothing calls this directly
no test coverage detected