()
| 1042 | |
| 1043 | #[test] |
| 1044 | fn test_resolve_no_identity_dir() { |
| 1045 | let dir = TempDir::new().unwrap(); |
| 1046 | let nonexistent = dir.path().join("does-not-exist"); |
| 1047 | |
| 1048 | let options = AgentAuthorOptions { |
| 1049 | agent_name: "claude-code", |
| 1050 | agent_display_name: "Claude Code", |
| 1051 | session_id: "60f5cbd2", |
| 1052 | identity_dir: Some(nonexistent), |
| 1053 | agent_identity: None, |
| 1054 | }; |
| 1055 | |
| 1056 | let author = resolve_agent_author(&options); |
| 1057 | |
| 1058 | // Should fall back to display name |
| 1059 | assert_eq!(author.name, "Claude Code"); |
| 1060 | assert!(author.email.is_none()); |
| 1061 | } |
| 1062 | |
| 1063 | #[test] |
| 1064 | fn test_resolve_empty_identity_dir() { |
nothing calls this directly
no test coverage detected