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

Source from the content-addressed store, hash-verified

883
884 #[test]
885 fn test_current_turn_duration_ms() {
886 let mut s = make_session();
887 assert!(s.current_turn_duration_ms().is_none());
888
889 s.begin_turn();
890 let duration = s.current_turn_duration_ms();
891 assert!(duration.is_some());
892 // Should be very small (just created)
893 assert!(duration.unwrap() < 1000);
894 }
895
896 // State queries
897

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45

Tested by

no test coverage detected