()
| 1272 | |
| 1273 | #[test] |
| 1274 | fn test_author_display_with_email() { |
| 1275 | let user = UserIdentityInfo { |
| 1276 | name: "Lee Faus".to_string(), |
| 1277 | email: Some("lee@atomic.dev".to_string()), |
| 1278 | public_key_base32: "KEYREF".to_string(), |
| 1279 | }; |
| 1280 | let options = AgentAuthorOptions { |
| 1281 | agent_name: "claude-code", |
| 1282 | agent_display_name: "Claude Code", |
| 1283 | session_id: "60f5cbd2-aa23-40ee-9085-4375dd186ce7", |
| 1284 | identity_dir: None, |
| 1285 | agent_identity: None, |
| 1286 | }; |
| 1287 | |
| 1288 | let author = derive_agent_author(&user, &options); |
| 1289 | let display = author.display_short(); |
| 1290 | |
| 1291 | assert_eq!(display, "claude+60f5 <lee@atomic.dev>"); |
| 1292 | } |
| 1293 | |
| 1294 | #[test] |
| 1295 | fn test_author_display_without_email() { |
nothing calls this directly
no test coverage detected