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

Function test_active_turn_end

atomic-agent/src/turn/phase.rs:927–935  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

925
926 #[test]
927 fn test_active_turn_end() {
928 let r = transition(Phase::Active, Event::TurnEnd, TransitionContext::default());
929 assert_eq!(r.new_phase, Phase::Idle);
930 assert_eq!(
931 r.actions,
932 vec![Action::RecordTurn, Action::UpdateInteraction]
933 );
934 assert!(r.requires_recording());
935 }
936
937 #[test]
938 fn test_active_recorded_mid_turn() {

Callers

nothing calls this directly

Calls 1

transitionFunction · 0.85

Tested by

no test coverage detected