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

Function test_provenance_has_timestamp

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

Source from the content-addressed store, hash-verified

719
720#[test]
721fn test_provenance_has_timestamp() {
722 let session = make_session();
723 let mut event = make_event();
724 event.timestamp = chrono::DateTime::from_timestamp_millis(1_792_920_379_589).unwrap();
725 let options = make_options(&session, &event);
726
727 let prov = build_turn_provenance(&options);
728 assert_eq!(prov.timestamp, Some(1_792_920_379_589));
729}
730
731// build_turn_envelope tests
732

Callers

nothing calls this directly

Calls 5

make_eventFunction · 0.85
make_optionsFunction · 0.85
build_turn_provenanceFunction · 0.85
make_sessionFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected