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

Function test_build_agent_author_fallback

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

Source from the content-addressed store, hash-verified

683
684 #[test]
685 fn test_build_agent_author_fallback() {
686 // Without a real identity store, this falls back to display name.
687 // In a real install with ~/.atomic/identities/ configured, it would
688 // produce the +tag format.
689 let author = build_agent_author(
690 "claude-code",
691 "Claude Code",
692 "60f5cbd2-aa23-40ee-9085-4375dd186ce7",
693 );
694
695 // Can't guarantee identity store exists in test env, so just verify
696 // the author is valid (either tagged or fallback)
697 assert!(!author.name.is_empty());
698 }
699
700 // extract_toml_string_value
701

Callers

nothing calls this directly

Calls 1

build_agent_authorFunction · 0.85

Tested by

no test coverage detected