(&self)
| 757 | } |
| 758 | |
| 759 | fn is_windows_admin(&self) -> bool { |
| 760 | let os = self.get_os(); |
| 761 | if WINDOWS.is(os) { |
| 762 | let command = Command::new("net", vec![String::from("session")]); |
| 763 | let output = run_shell_command(command).unwrap_or_default(); |
| 764 | !output.is_empty() && !output.contains("error") && !output.contains("not recognized") |
| 765 | } else { |
| 766 | false |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | fn is_safari(&self) -> bool { |
| 771 | self.get_browser_name().contains(SAFARI_NAME) |
no test coverage detected