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

Function test_turn_event_with_timestamp

atomic-agent/src/event.rs:905–910  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

903
904 #[test]
905 fn test_turn_event_with_timestamp() {
906 use chrono::TimeZone;
907 let ts = Utc.with_ymd_and_hms(2026, 1, 15, 10, 30, 0).unwrap();
908 let event = TurnEvent::new("s", HookType::TurnStart).with_timestamp(ts);
909 assert_eq!(event.timestamp, ts);
910 }
911
912 #[test]
913 fn test_turn_event_display() {

Callers

nothing calls this directly

Calls 2

with_timestampMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected