/// Checks that the component has not been shut down, panics if it has.
Checks that the component has not been shut down, panics if it has.
Checks that the component has not been shut down panics if it has .
pub async fn check_not_shut_down(&self, runner: &MockRunner) {
        // If the MockController has started, check that no stop requests have
        // been received.
        let request_map = runner.get_request_map();
        let unlocked_map = request_map.lock().await;
        if let Some(request_vec) = unlocked_map.get(&self.channel_id) {
            assert_eq!(*request_vec, vec![]);
        }
        let execution = self.component.lock_execution().await;
        assert!(execution.runtime.is_some());
        assert!(!execution.is_shut_down());
    }
pub async fn check_not_shut_down ( & self , runner : & MockRunner ) { // If the MockController has started, check that no stop requests have // been received. let request_map = runner . get_request_map ( ) ; let unlocked_map = request_map . lock ( ) . await ; if let Some ( request_vec ) = unlocked_map . get ( & self . channel_id ) { assert_eq ! ( request_vec vec [ ] ) ; } let execution = self . component . lock_execution ( ) . await ; assert ! ( execution runtime is_some ( ) ) ; assert ! ( execution is_shut_down ( ) ) ; }
Checks that the component has not been shut down, panics if it has.
Checks that the component has not been shut down panics if it has .
&self
runner
&MockRunner