(&self)
| 736 | } |
| 737 | |
| 738 | fn is_windows_admin(&self) -> bool { |
| 739 | let os = self.get_os(); |
| 740 | if WINDOWS.is(os) { |
| 741 | let command = Command::new("net", vec![String::from("session")]); |
| 742 | let output = run_shell_command(command).unwrap_or_default(); |
| 743 | !output.is_empty() && !output.contains("error") && !output.contains("not recognized") |
| 744 | } else { |
| 745 | false |
| 746 | } |
| 747 | } |
| 748 | |
| 749 | fn is_safari(&self) -> bool { |
| 750 | self.get_browser_name().contains(SAFARI_NAME) |
no test coverage detected