()
| 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() { |
nothing calls this directly
no test coverage detected