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

Function test_end_turn

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

Source from the content-addressed store, hash-verified

1659
1660 #[test]
1661 fn test_end_turn() {
1662 let mut s = make_session();
1663 assert_eq!(s.turn_count, 0);
1664
1665 s.begin_turn();
1666 let turn_num = s.end_turn();
1667 assert_eq!(turn_num, 1);
1668 assert_eq!(s.turn_count, 1);
1669 assert!(s.current_turn_started_at.is_none());
1670
1671 s.begin_turn();
1672 let turn_num = s.end_turn();
1673 assert_eq!(turn_num, 2);
1674 assert_eq!(s.turn_count, 2);
1675 }
1676
1677 #[test]
1678 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