fn create_new_tab(size: Size) -> Tab {
    set_session_name("test".into());
    let index = 0;
    let position = 0;
    let name = String::new();
    let os_api = Box::new(FakeInputOutput {});
    let senders = ThreadSenders::default().silently_fail_on_send();
    let max_panes = None;
    let mode_info = ModeInfo::default();
    let style = Style::default();
    let draw_pane_frames = true;
    let client_id = 1;
    let session_is_mirrored = true;
    let mut connected_clients = HashSet::new();
    connected_clients.insert(client_id);
    let connected_clients = Rc::new(RefCell::new(connected_clients));
    let copy_command = None;
    let clipboard = Clipboard::default();
    let mut tab = Tab::new(
        index,
        position,
        name,
        size,
        os_api,
        senders,
        max_panes,
        style,
        mode_info,
        draw_pane_frames,
        connected_clients,
        session_is_mirrored,
        client_id,
        copy_command,
        clipboard,
    );
    tab.apply_layout(
        LayoutTemplate::default().try_into().unwrap(),
        vec![1],
        index,
        client_id,
    );
    tab
}
// TODO: move to shared thingy with other test file
move to shared thingy with other test file
move to shared thingy with other test file
fn create_new_tab(size: Size) -> Tab {
    set_session_name("test".into());
    let index = 0;
    let position = 0;
    let name = String::new();
    let os_api = Box::new(FakeInputOutput {});
    let senders = ThreadSenders::default().silently_fail_on_send();
    let max_panes = None;
    let mode_info = ModeInfo::default();
    let style = Style::default();
    let draw_pane_frames = true;
    let client_id = 1;
    let session_is_mirrored = true;
    let mut connected_clients = HashSet::new();
    connected_clients.insert(client_id);
    let connected_clients = Rc::new(RefCell::new(connected_clients));
    let copy_command = None;
    let clipboard = Clipboard::default();
    let mut tab = Tab::new(
        index,
        position,
        name,
        size,
        os_api,
        senders,
        max_panes,
        style,
        mode_info,
        draw_pane_frames,
        connected_clients,
        session_is_mirrored,
        client_id,
        copy_command,
        clipboard,
    );
    tab.apply_layout(
        LayoutTemplate::default().try_into().unwrap(),
        vec![1],
        index,
        client_id,
    );
    tab
}
fn create_new_tab ( size : Size ) -> Tab { set_session_name ( " " . into ( ) ) ; let index = 0 ; let position = 0 ; let name = String :: new ( ) ; let os_api = Box :: new ( FakeInputOutput { } ) ; let senders = ThreadSenders :: default ( ) . silently_fail_on_send ( ) ; let max_panes = None ; let mode_info = ModeInfo :: default ( ) ; let style = Style :: default ( ) ; let draw_pane_frames = true ; let client_id = 1 ; let session_is_mirrored = true ; let mut connected_clients = HashSet :: new ( ) ; connected_clients . insert ( client_id ) ; let connected_clients = Rc :: new ( RefCell :: new ( connected_clients ) ) ; let copy_command = None ; let clipboard = Clipboard :: default ( ) ; let mut tab = Tab :: new ( index , position , name , size , os_api , senders , max_panes , style , mode_info , draw_pane_frames , connected_clients , session_is_mirrored , client_id , copy_command , clipboard , ) ; tab . apply_layout ( LayoutTemplate :: default ( ) . try_into ( ) . unwrap ( ) , vec ! [ 1 ] , index , client_id , ) ; tab }
TODO: move to shared thingy with other test file
TODO : move to shared thingy with other test file
size
Size
size
Size