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

Source from the content-addressed store, hash-verified

829
830 #[test]
831 fn test_current_turn_duration_ms() {
832 let mut s = make_session();
833 assert!(s.current_turn_duration_ms().is_none());
834
835 s.begin_turn();
836 let duration = s.current_turn_duration_ms();
837 assert!(duration.is_some());
838 // Should be very small (just created)
839 assert!(duration.unwrap() < 1000);
840 }
841
842 // State queries
843

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45

Tested by

no test coverage detected