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

Function test_derive_with_email

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

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn test_derive_with_email() {
497 let user = UserIdentityInfo {
498 name: "Lee Faus".to_string(),
499 email: Some("lee@atomic.dev".to_string()),
500 public_key_base32: "ABCDEF1234567890".to_string(),
501 };
502 let options = AgentAuthorOptions {
503 agent_name: "claude-code",
504 agent_display_name: "Claude Code",
505 session_id: "60f5cbd2-aa23-40ee-9085-4375dd186ce7",
506 identity_dir: None,
507 };
508
509 let author = derive_agent_author(&user, &options);
510
511 assert_eq!(author.name, "claude+60f5");
512 assert_eq!(author.email, Some("lee@atomic.dev".to_string()));
513 assert_eq!(author.identity, Some("ABCDEF1234567890".to_string()));
514 }
515
516 #[test]
517 fn test_derive_without_email() {

Callers

nothing calls this directly

Calls 1

derive_agent_authorFunction · 0.85

Tested by

no test coverage detected