(&self, entry: &DirEntry, file_name: &str)
| 1066 | } |
| 1067 | |
| 1068 | fn is_in_cache(&self, entry: &DirEntry, file_name: &str) -> bool { |
| 1069 | let is_file = entry.path().is_file(); |
| 1070 | |
| 1071 | let is_file_name = entry |
| 1072 | .file_name() |
| 1073 | .to_str() |
| 1074 | .map(|s| { |
| 1075 | if MACOS.is(self.get_os()) && !self.is_firefox() { |
| 1076 | s.contains(file_name) |
| 1077 | } else { |
| 1078 | s.ends_with(file_name) |
| 1079 | } |
| 1080 | }) |
| 1081 | .unwrap_or(false); |
| 1082 | |
| 1083 | let match_os = entry |
| 1084 | .path() |
| 1085 | .to_str() |
| 1086 | .map(|s| s.contains(self.get_platform_label())) |
| 1087 | .unwrap_or(false); |
| 1088 | |
| 1089 | is_file && is_file_name && match_os |
| 1090 | } |
| 1091 | |
| 1092 | fn is_driver_and_matches_browser_version(&self, entry: &DirEntry) -> bool { |
| 1093 | let match_driver_version = entry |
no test coverage detected