MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_fallback_author

Function test_fallback_author

atomic-agent/src/identity.rs:758–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756
757 #[test]
758 fn test_fallback_author() {
759 let options = AgentAuthorOptions {
760 agent_name: "claude-code",
761 agent_display_name: "Claude Code",
762 session_id: "sess-123",
763 identity_dir: None,
764 agent_identity: None,
765 };
766
767 let author = fallback_agent_author(&options);
768
769 assert_eq!(author.name, "Claude Code");
770 assert!(author.email.is_none());
771 assert!(author.identity.is_none());
772 }
773
774 // Delegated agent identity (keyed attribution)
775

Callers

nothing calls this directly

Calls 1

fallback_agent_authorFunction · 0.85

Tested by

no test coverage detected