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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45

Tested by

no test coverage detected