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

Function test_header_has_author

atomic-agent/src/record/tests.rs:552–568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

550
551#[test]
552fn test_header_has_author() {
553 let session = make_session();
554 let event = make_event();
555 let options = make_options(&session, &event);
556
557 let status = empty_status();
558 let header = build_turn_header(&options, &status, &no_untracked());
559 assert!(!header.authors.is_empty());
560 // Author is either "claude+sess" (if user identity found in ~/.atomic/identities/)
561 // or "Claude Code" (fallback when no identity configured).
562 let name = &header.authors[0].name;
563 assert!(
564 name == "Claude Code" || name.starts_with("claude+"),
565 "Expected 'Claude Code' or 'claude+...' but got: {}",
566 name
567 );
568}
569
570// vendor_from_agent_name tests
571

Callers

nothing calls this directly

Calls 6

make_eventFunction · 0.85
make_optionsFunction · 0.85
empty_statusFunction · 0.85
build_turn_headerFunction · 0.85
no_untrackedFunction · 0.85
make_sessionFunction · 0.70

Tested by

no test coverage detected