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

Function test_author_display_with_email

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

Source from the content-addressed store, hash-verified

774
775 #[test]
776 fn test_author_display_with_email() {
777 let user = UserIdentityInfo {
778 name: "Lee Faus".to_string(),
779 email: Some("lee@atomic.dev".to_string()),
780 public_key_base32: "KEYREF".to_string(),
781 };
782 let options = AgentAuthorOptions {
783 agent_name: "claude-code",
784 agent_display_name: "Claude Code",
785 session_id: "60f5cbd2-aa23-40ee-9085-4375dd186ce7",
786 identity_dir: None,
787 };
788
789 let author = derive_agent_author(&user, &options);
790 let display = author.display_short();
791
792 assert_eq!(display, "claude+60f5 <lee@atomic.dev>");
793 }
794
795 #[test]
796 fn test_author_display_without_email() {

Callers

nothing calls this directly

Calls 2

derive_agent_authorFunction · 0.85
display_shortMethod · 0.45

Tested by

no test coverage detected