()
| 1062 | |
| 1063 | #[test] |
| 1064 | fn test_resolve_empty_identity_dir() { |
| 1065 | let dir = TempDir::new().unwrap(); |
| 1066 | |
| 1067 | let options = AgentAuthorOptions { |
| 1068 | agent_name: "claude-code", |
| 1069 | agent_display_name: "Claude Code", |
| 1070 | session_id: "60f5cbd2", |
| 1071 | identity_dir: Some(dir.path().to_path_buf()), |
| 1072 | agent_identity: None, |
| 1073 | }; |
| 1074 | |
| 1075 | let author = resolve_agent_author(&options); |
| 1076 | |
| 1077 | // No config.toml → fallback |
| 1078 | assert_eq!(author.name, "Claude Code"); |
| 1079 | } |
| 1080 | |
| 1081 | #[test] |
| 1082 | fn test_resolve_with_identity() { |
nothing calls this directly
no test coverage detected