MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / find_platform_url

Method find_platform_url

rust/src/chrome.rs:135–140  ·  view source on GitHub ↗
(&self, downloads: &'a [PlatformUrl])

Source from the content-addressed store, hash-verified

133 }
134
135 fn find_platform_url<'a>(&self, downloads: &'a [PlatformUrl]) -> Option<&'a str> {
136 downloads
137 .iter()
138 .find(|p| p.platform.eq_ignore_ascii_case(self.get_platform_label()))
139 .map(|p| p.url.as_str())
140 }
141
142 // CfT publishes Linux arm64 binaries later than the rest of the platforms, so the minimum
143 // version available for download is higher there than the general CfT minimum.

Calls 3

findMethod · 0.80
mapMethod · 0.45
get_platform_labelMethod · 0.45

Tested by

no test coverage detected