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:1296–1301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1294
1295 #[test]
1296 fn test_turn_event_with_timestamp() {
1297 use chrono::TimeZone;
1298 let ts = Utc.with_ymd_and_hms(2026, 1, 15, 10, 30, 0).unwrap();
1299 let event = TurnEvent::new("s", HookType::TurnStart).with_timestamp(ts);
1300 assert_eq!(event.timestamp, ts);
1301 }
1302
1303 #[test]
1304 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