()
| 774 | |
| 775 | #[test] |
| 776 | fn test_author_display_with_email() { |
| 777 | let user = UserIdentityInfo { |
| 778 | name: "Lee Faus".to_string(), |
| 779 | email: Some("lee@atomic.dev".to_string()), |
| 780 | public_key_base32: "KEYREF".to_string(), |
| 781 | }; |
| 782 | let options = AgentAuthorOptions { |
| 783 | agent_name: "claude-code", |
| 784 | agent_display_name: "Claude Code", |
| 785 | session_id: "60f5cbd2-aa23-40ee-9085-4375dd186ce7", |
| 786 | identity_dir: None, |
| 787 | }; |
| 788 | |
| 789 | let author = derive_agent_author(&user, &options); |
| 790 | let display = author.display_short(); |
| 791 | |
| 792 | assert_eq!(display, "claude+60f5 <lee@atomic.dev>"); |
| 793 | } |
| 794 | |
| 795 | #[test] |
| 796 | fn test_author_display_without_email() { |
nothing calls this directly
no test coverage detected