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

Function test_end_turn

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

Source from the content-addressed store, hash-verified

812
813 #[test]
814 fn test_end_turn() {
815 let mut s = make_session();
816 assert_eq!(s.turn_count, 0);
817
818 s.begin_turn();
819 let turn_num = s.end_turn();
820 assert_eq!(turn_num, 1);
821 assert_eq!(s.turn_count, 1);
822 assert!(s.current_turn_started_at.is_none());
823
824 s.begin_turn();
825 let turn_num = s.end_turn();
826 assert_eq!(turn_num, 2);
827 assert_eq!(s.turn_count, 2);
828 }
829
830 #[test]
831 fn test_current_turn_duration_ms() {

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
begin_turnMethod · 0.45
end_turnMethod · 0.45

Tested by

no test coverage detected