(&self, entry: &DirEntry, file_name: &str)
| 1055 | } |
| 1056 | |
| 1057 | fn is_in_cache(&self, entry: &DirEntry, file_name: &str) -> bool { |
| 1058 | let is_file = entry.path().is_file(); |
| 1059 | |
| 1060 | let is_file_name = entry |
| 1061 | .file_name() |
| 1062 | .to_str() |
| 1063 | .map(|s| { |
| 1064 | if MACOS.is(self.get_os()) && !self.is_firefox() { |
| 1065 | s.contains(file_name) |
| 1066 | } else { |
| 1067 | s.ends_with(file_name) |
| 1068 | } |
| 1069 | }) |
| 1070 | .unwrap_or(false); |
| 1071 | |
| 1072 | let match_os = entry |
| 1073 | .path() |
| 1074 | .to_str() |
| 1075 | .map(|s| s.contains(self.get_platform_label())) |
| 1076 | .unwrap_or(false); |
| 1077 | |
| 1078 | is_file && is_file_name && match_os |
| 1079 | } |
| 1080 | |
| 1081 | fn is_driver_and_matches_browser_version(&self, entry: &DirEntry) -> bool { |
| 1082 | let match_driver_version = entry |
no test coverage detected