( shift_key: bool, control_key: bool, none: NavigationCommand, shift: NavigationCommand, control: NavigationCommand, shift_control: NavigationCommand )
| 589 | |
| 590 | |
| 591 | fn choose_command( |
| 592 | shift_key: bool, |
| 593 | control_key: bool, |
| 594 | none: NavigationCommand, |
| 595 | shift: NavigationCommand, |
| 596 | control: NavigationCommand, |
| 597 | shift_control: NavigationCommand |
| 598 | ) -> NavigationCommand { |
| 599 | if shift_key && control_key { |
| 600 | return shift_control; |
| 601 | } else if control_key { |
| 602 | return control; |
| 603 | } else if shift_key { |
| 604 | return shift; |
| 605 | } else { |
| 606 | return none; |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | fn choose_param( |
| 611 | shift_key: bool, |
no outgoing calls
no test coverage detected