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

Function test_end_turn

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

Source from the content-addressed store, hash-verified

840
841 #[test]
842 fn test_end_turn() {
843 let mut s = make_session();
844 assert_eq!(s.turn_count, 0);
845
846 s.begin_turn();
847 let turn_num = s.end_turn();
848 assert_eq!(turn_num, 1);
849 assert_eq!(s.turn_count, 1);
850 assert!(s.current_turn_started_at.is_none());
851
852 s.begin_turn();
853 let turn_num = s.end_turn();
854 assert_eq!(turn_num, 2);
855 assert_eq!(s.turn_count, 2);
856 }
857
858 #[test]
859 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