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

Function test_builder_required_fields

atomic-agent/src/envelope.rs:604–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

602
603 #[test]
604 fn test_builder_required_fields() {
605 let e = SessionEnvelope::builder("sess-1", "claude-code").build();
606 assert_eq!(e.session_id, "sess-1");
607 assert_eq!(e.agent_name, "claude-code");
608 assert_eq!(e.schema_version, SCHEMA_VERSION);
609 assert_eq!(e.turn_number, 1); // default
610 assert!(e.total_turns.is_none());
611 assert!(e.prompt_summary.is_none());
612 assert!(e.prompt_hash.is_none());
613 assert!(e.files_in_turn.is_empty());
614 assert_eq!(e.files_in_session, 0);
615 assert!(e.delegation_id.is_none());
616 assert!(e.agent_display_name.is_none());
617 }
618
619 #[test]
620 fn test_builder_all_fields() {

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected