/// Checks that the component is shut down, panics if this is not true.
Checks that the component is shut down, panics if this is not true.
Checks that the component is shut down panics if this is not true .
pub async fn check_is_shut_down(&self, runner: &MockRunner) {
        // Check the list of requests for this component
        let request_map = runner.get_request_map();
        let unlocked_map = request_map.lock().await;
        let request_vec = unlocked_map
            .get(&self.channel_id)
            .expect("request map didn't have channel id, perhaps the controller wasn't started?");
        assert_eq!(*request_vec, vec![ControlMessage::Stop]);
        let execution = self.component.lock_execution().await;
        assert!(execution.runtime.is_none());
        assert!(execution.is_shut_down());
    }
pub async fn check_is_shut_down ( & self , runner : & MockRunner ) { // Check the list of requests for this component let request_map = runner . get_request_map ( ) ; let unlocked_map = request_map . lock ( ) . await ; let request_vec = unlocked_map . get ( & self . channel_id ) . expect ( " " ) ; assert_eq ! ( request_vec vec [ ControlMessage Stop ] ) ; let execution = self . component . lock_execution ( ) . await ; assert ! ( execution runtime is_none ( ) ) ; assert ! ( execution is_shut_down ( ) ) ; }
Checks that the component is shut down, panics if this is not true.
Checks that the component is shut down panics if this is not true .
&self
runner
&MockRunner