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

Function test_envelope_session_started_at

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

Source from the content-addressed store, hash-verified

835
836#[test]
837fn test_envelope_session_started_at() {
838 let session = make_session();
839 let event = make_event();
840 let options = make_options(&session, &event);
841
842 let env = build_turn_envelope(&options, &[]);
843 assert_eq!(
844 env.session_started_at,
845 session.started_at.timestamp_millis()
846 );
847}
848
849#[test]
850fn envelope_timing_preserves_subsecond_duration() {

Callers

nothing calls this directly

Calls 4

make_eventFunction · 0.85
make_optionsFunction · 0.85
build_turn_envelopeFunction · 0.85
make_sessionFunction · 0.70

Tested by

no test coverage detected