(cmd: &mut Command)
| 64 | |
| 65 | #[allow(dead_code)] |
| 66 | pub fn assert_browser(cmd: &mut Command) { |
| 67 | let stdout = &cmd.unwrap().stdout; |
| 68 | let output = std::str::from_utf8(stdout).unwrap(); |
| 69 | let json: JsonOutput = serde_json::from_str(output).unwrap(); |
| 70 | let browser_path = Path::new(&json.result.browser_path); |
| 71 | assert!(browser_path.exists()); |
| 72 | assert!(is_executable(browser_path)); |
| 73 | } |
| 74 | |
| 75 | #[allow(dead_code)] |
| 76 | pub fn get_driver_path(cmd: &mut Command) -> String { |
no outgoing calls
no test coverage detected