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

Function test_header_has_author

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

Source from the content-addressed store, hash-verified

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

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