()
| 1058 | |
| 1059 | #[test] |
| 1060 | fn test_ended_recorded_without_files() { |
| 1061 | let ctx = TransitionContext { |
| 1062 | has_files_changed: false, |
| 1063 | }; |
| 1064 | let r = transition(Phase::Ended, Event::Recorded, ctx); |
| 1065 | assert_eq!(r.new_phase, Phase::Ended); |
| 1066 | assert_eq!( |
| 1067 | r.actions, |
| 1068 | vec![Action::DiscardIfNoFiles, Action::UpdateInteraction] |
| 1069 | ); |
| 1070 | } |
| 1071 | |
| 1072 | #[test] |
| 1073 | fn test_ended_session_start_reenter() { |
nothing calls this directly
no test coverage detected