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

Function test_builder_required_fields

atomic-core/src/change/envelope.rs:623–636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

621
622 #[test]
623 fn test_builder_required_fields() {
624 let e = SessionEnvelope::builder("sess-1", "claude-code").build();
625 assert_eq!(e.session_id, "sess-1");
626 assert_eq!(e.agent_name, "claude-code");
627 assert_eq!(e.schema_version, SCHEMA_VERSION);
628 assert_eq!(e.turn_number, 1); // default
629 assert!(e.total_turns.is_none());
630 assert!(e.prompt_summary.is_none());
631 assert!(e.prompt_hash.is_none());
632 assert!(e.files_in_turn.is_empty());
633 assert_eq!(e.files_in_session, 0);
634 assert!(e.delegation_id.is_none());
635 assert!(e.agent_display_name.is_none());
636 }
637
638 #[test]
639 fn test_builder_all_fields() {

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected