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

Function test_idle_turn_end

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

Source from the content-addressed store, hash-verified

867
868 #[test]
869 fn test_idle_turn_end() {
870 // TurnEnd from Idle still attempts recording because OpenCode's
871 // plugin can fire session.idle (TurnEnd) without a preceding
872 // TurnStart when bus event ordering doesn't guarantee it.
873 let r = transition(Phase::Idle, Event::TurnEnd, TransitionContext::default());
874 assert_eq!(r.new_phase, Phase::Idle);
875 assert_eq!(
876 r.actions,
877 vec![Action::RecordIfChanged, Action::UpdateInteraction]
878 );
879 }
880
881 #[test]
882 fn test_idle_recorded() {

Callers

nothing calls this directly

Calls 1

transitionFunction · 0.85

Tested by

no test coverage detected