()
| 596 | |
| 597 | #[test] |
| 598 | fn test_resolve_empty_identity_dir() { |
| 599 | let dir = TempDir::new().unwrap(); |
| 600 | |
| 601 | let options = AgentAuthorOptions { |
| 602 | agent_name: "claude-code", |
| 603 | agent_display_name: "Claude Code", |
| 604 | session_id: "60f5cbd2", |
| 605 | identity_dir: Some(dir.path().to_path_buf()), |
| 606 | }; |
| 607 | |
| 608 | let author = resolve_agent_author(&options); |
| 609 | |
| 610 | // No config.toml → fallback |
| 611 | assert_eq!(author.name, "Claude Code"); |
| 612 | } |
| 613 | |
| 614 | #[test] |
| 615 | fn test_resolve_with_identity() { |
nothing calls this directly
no test coverage detected