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

Source from the content-addressed store, hash-verified

857
858 #[test]
859 fn test_current_turn_duration_ms() {
860 let mut s = make_session();
861 assert!(s.current_turn_duration_ms().is_none());
862
863 s.begin_turn();
864 let duration = s.current_turn_duration_ms();
865 assert!(duration.is_some());
866 // Should be very small (just created)
867 assert!(duration.unwrap() < 1000);
868 }
869
870 // State queries
871

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45

Tested by

no test coverage detected