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

Function test_current_turn_duration_ms

atomic-agent/src/turn/session.rs:1678–1687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1676
1677 #[test]
1678 fn test_current_turn_duration_ms() {
1679 let mut s = make_session();
1680 assert!(s.current_turn_duration_ms().is_none());
1681
1682 s.begin_turn();
1683 let duration = s.current_turn_duration_ms();
1684 assert!(duration.is_some());
1685 // Should be very small (just created)
1686 assert!(duration.unwrap() < 1000);
1687 }
1688
1689 // State queries
1690

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45

Tested by

no test coverage detected