fn test_get_authorized_keys_path_from_sshd_command_fails()

in libazureinit/src/provision/ssh.rs [401:408]


    fn test_get_authorized_keys_path_from_sshd_command_fails() {
        // Mock sshd command runner that simulates a failed command execution
        let mock_runner =
            || Err(io::Error::new(io::ErrorKind::Other, "command error"));

        let result = get_authorized_keys_path_from_sshd(mock_runner);
        assert!(result.is_none());
    }