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